An intelligent follow-up management method based on digestive department structured medical record data
By constructing a semantic anchor point library for disease progression and a path migration mechanism, the problem of lagging disease evolution in the follow-up management of chronic diseases in the Department of Gastroenterology was solved, and the accurate, real-time updates and resource optimization of personalized follow-up plans were achieved.
Patent Information
- Application Number
- CN202611354222.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-27
AI Technical Summary
The existing follow-up management system for chronic diseases in the Department of Gastroenterology cannot effectively perceive the slow progression of the disease and the continuous evolution process within the alternating stages. Furthermore, it lacks a unified and collaborative analysis method for multimodal medical record data, resulting in delays in adjusting the follow-up pathway and a waste of resources.
By acquiring patients' structured medical record data, performing multi-granular semantic parsing processing, constructing a disease course semantic anchor point library, generating disease course stage coordinates based on the anchor point library, using anchor point attraction domains to monitor disease course stage transitions, initiating a path migration mechanism, generating personalized follow-up plans, and recording semantic migration logs.
It enables early identification of disease progression stages, ensuring accurate and real-time linkage between follow-up plans and patient condition evolution, reducing resource waste, and improving the personalization and dynamic adaptability of follow-up management.
Smart Images

Figure CN123183044A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical artificial intelligence and clinical data mining, and in particular to an intelligent follow-up management method based on structured medical record data in gastroenterology. Background Technology
[0002] Current chronic disease follow-up management systems in gastroenterology generally employ either a "stage label + fixed template" or a "scoring and grading + rule switching" approach. Typical practices rely on structured stage labels, physiological indicator thresholds, or total symptom scores to divide patients into stages and assign corresponding follow-up task forms accordingly. These methods are widely used in large-scale population screening and risk control of common diseases.
[0003] However, existing conventional methods still have the following shortcomings in practical applications. On the one hand, the adjustment of follow-up pathways heavily relies on clear disease course demarcation points or events where key indicators exceed preset thresholds, making it difficult to effectively perceive and respond to the continuous evolution process within the slow progression of the disease and the alternation of stages. On the other hand, multimodal medical record data such as endoscopic examination report texts, pathological diagnosis descriptions, biochemical test time-series data, and patient self-report symptom scales are usually used in isolation, lacking means to uniformly map these heterogeneous data to the disease course semantic space for collaborative analysis, making it difficult to capture the disease course stage changes reflected by the collaborative evolution of multiple factors. In addition, the adjustment of follow-up pathways is usually a complete template replacement or a simple rule switch, failing to achieve precise incremental updates of the pathway structure while retaining the original valuable nodes.
[0004] Conventional methods also generally lack a mechanism for recording and tracing the decision-making process for stage determination and path adjustment. The semantic basis for follow-up plan adjustments is difficult to be effectively retained and retrospectively verified, resulting in insufficient clinical interpretability and audit compliance. Summary of the Invention
[0005] This application provides an intelligent follow-up management method based on structured medical record data in gastroenterology, aiming to solve the problem that existing follow-up management methods rely on static staging labels and fixed path templates, resulting in follow-up plan adjustments lagging behind the dynamic evolution of the patient's disease course at the semantic level, and thus failing to achieve accurate, real-time adaptive updates of personalized follow-up plans.
[0006] This application provides an intelligent follow-up management method based on structured medical record data from the gastroenterology department, specifically including:
[0007] Obtain the patient's structured medical record data, perform multi-granular semantic parsing processing on the structured medical record data, and generate a set of semantic units to be mapped;
[0008] Based on the disease course-related features extracted from the medical knowledge base, a disease course semantic anchor point library is constructed. Each anchor point in the disease course semantic anchor point library is encoded as a structured semantic vector containing semantic identifier, confidence weight, time stability coefficient and modal association information.
[0009] The set of semantic units to be mapped is matched and mapped with the disease course semantic anchor point library to generate the patient's disease course stage coordinates in the semantic space;
[0010] Based on the time stability coefficient of each anchor point in the disease course semantic anchor point library, an anchor point attraction domain is constructed, and the deviation trajectory of the disease course stage coordinates relative to the anchor point attraction domain is calculated to generate a disease course stage transition judgment signal.
[0011] In response to the disease stage transition judgment signal, if the transition conditions are met, the path migration mechanism is activated to generate an incremental reconstruction instruction for the follow-up path.
[0012] Based on the incremental reconstruction instructions, the execution nodes of the original follow-up path are adjusted to generate an evolved personalized follow-up plan;
[0013] Record the semantic evidence chain that triggers the disease stage transition judgment signal, and generate a semantic transition log.
[0014] This application provides an intelligent follow-up management method based on structured medical record data from the Department of Gastroenterology, which has the following beneficial effects:
[0015] By constructing a disease course semantic anchor point library containing semantic identifiers, confidence weights, time stability coefficients, and modal association information, the multimodal structured medical record data of patients after multi-granular semantic parsing is matched and mapped with the anchor point library to generate disease course stage coordinates. Based on the anchor point attraction domain and coordinate deviation trajectory, disease course stage transitions are detected. Then, when the transition conditions are met, the path migration mechanism is activated to generate incremental reconstruction instructions and adjust the execution nodes of the original follow-up path. At the same time, the semantic evidence chain is recorded to generate a semantic migration log. The aforementioned approach maps multi-source clinical evidence from patients to a unified semantic space for collaborative analysis, eliminating reliance on static staging labels and preset thresholds. This allows the follow-up system to perceive the continuous semantic evolution of patients within the transitional intervals of disease stages. Through dynamic monitoring of anchor point attraction domains and deviation trajectories, it enables early identification of disease progression transitions, overcoming the response lag problem caused by traditional methods that rely on explicit diagnostic labels or exceeding indicator limits. The path migration mechanism only makes incremental adjustments to the follow-up path execution nodes when a transition occurs, such as retention, insertion, and upgrading, avoiding execution gaps and resource waste caused by overall template replacement. This achieves precise and real-time linkage between the follow-up plan and the actual evolution of the patient's condition. At the same time, the semantic migration log provides a complete and traceable chain of evidence for the decision-making process, meeting the needs of clinical auditing and interpretability, and significantly improving the personalization level and dynamic adaptive capability of chronic disease follow-up management in gastroenterology. Attached Figure Description
[0016] Figure 1 This is the main flowchart of an intelligent follow-up management method based on structured medical record data in gastroenterology.
[0017] Figure 2 This is a flowchart illustrating the logic for generating disease stage transition judgment signals in an intelligent follow-up management method based on structured medical record data in gastroenterology.
[0018] Figure 3 This is a logical flowchart of node persistence analysis and existing path subset generation in an intelligent follow-up management method based on structured medical record data in gastroenterology. Detailed Implementation
[0019] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0020] The following disclosure provides many different embodiments or examples for implementing different structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. Of course, these are merely examples and are not intended to limit the invention. Furthermore, reference numerals and / or letters may be repeated in different examples; such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0021] like Figure 1 As shown, this application provides an intelligent follow-up management method based on structured medical record data from the Department of Gastroenterology, specifically including:
[0022] S1: Obtain structured medical record data of patients in the Department of Gastroenterology. The structured medical record data includes endoscopy report text, pathological diagnosis description text, biochemical test time series data, and patient self-report symptom scale scores. Perform multi-granular semantic parsing processing on the structured medical record data to generate a set of semantic units to be mapped.
[0023] S2: Based on the histological evolution keyword combinations, symptom-sign coupling patterns, and synergistic changes in test indicators extracted from the medical knowledge base, a disease course semantic anchor point library is constructed. Each disease course semantic anchor point in the disease course semantic anchor point library is encoded as a structured semantic vector containing semantic identifiers, confidence weights, time stability coefficients, and modal association information.
[0024] S3: Input the set of semantic units to be mapped into the disease course semantic anchor point library for matching and mapping. Use the time sequence pattern matcher to identify whether the numerical sequence forms the cooperative change pattern required for the anchor point. Then, weight and fuse all matching results to generate the disease course stage coordinates of the patient in the anchor point space. The disease course stage coordinates are represented as a dynamic distribution area with a confidence ellipsoid and its centroid position reflects the most likely disease course stage to which the patient belongs.
[0025] S4: Define a Gaussian attractive potential field based on the time stability coefficient of each semantic anchor point in the disease course semantic anchor point library to form the anchor point attraction domain, and calculate the deviation trajectory of the centroid position of the disease course stage coordinates relative to the current anchor point attraction domain and the adjacent anchor point attraction domains to generate a disease course stage transition judgment signal.
[0026] S5: If the path migration mechanism is initiated in response to the disease stage transition judgment signal and the centroid position is updated twice consecutively and falls into the attraction domain of the adjacent anchor point and deviates from the original anchor point domain by more than a threshold, the incremental reconstruction instruction for the follow-up path structure will be generated.
[0027] S6: Based on the incremental reconstruction command, perform semantic-driven node adjustment operations on the original follow-up path, retain the basic monitoring project nodes that still have clinical value in the original follow-up path, insert new sub-path nodes corresponding to the new disease stage, and upgrade the original re-examination nodes to composite monitoring nodes to generate the evolved personalized follow-up plan.
[0028] S7: Record the specific semantic evidence chain that triggers the disease stage transition judgment event and generate a semantic migration log. The semantic evidence chain includes the combination of test indicators that first meet the anchor point matching conditions and the endoscopic description text fragment that is successfully mapped, so as to achieve traceability and audit compliance of the follow-up plan evolution process.
[0029] Step S1: Obtain structured medical record data from gastroenterology patients. This data includes endoscopy report text, pathology diagnosis description text, biochemical test time-series data, and patient self-report symptom scale scores. Multi-granularity semantic parsing is then performed on the structured medical record data to generate a set of semantic units to be mapped. Specifically, this includes:
[0030] S1.1: Obtain multimodal raw clinical data of patients in the Department of Gastroenterology. The multimodal raw clinical data includes endoscopy report text, pathology diagnosis description text, biochemical test time series data, and patient self-report symptom scale scores. Use medical data cleaning algorithms to denoise, imput missing values, and standardize the format of the multimodal raw clinical data to generate a standardized clinical data set.
[0031] Multimodal raw clinical data of gastroenterology patients were obtained from the hospital information system interface. The data included endoscopy report text, pathology diagnosis description text, biochemical test time series data, and patient self-report symptom scale scores. Data source consistency checks were performed on the multimodal raw clinical data to remove garbled characters and non-medical noise data caused by transmission errors, ensuring the integrity and purity of the data source.
[0032] For missing value data, a differentiated imputation strategy is adopted based on data type differences: for discrete categorical data such as pathological grading, the mode imputation method is used; for continuous numerical data such as serum indicators, linear interpolation based on temporal proximity is used for estimation to restore the temporal continuity of the data. Unit standardization is performed on biochemical test time series data, converting heterogeneous units generated by different testing equipment into SI units to eliminate the impact of dimensional differences on subsequent analysis. A regular expression parsing engine is used to perform structured cleaning of endoscopy report text, removing irrelevant format control characters and redundant spaces, retaining key descriptive fragments with clinical semantics. Z-Score standardization is used to normalize numerical data, eliminating the interference of extreme outliers on distribution characteristics and generating a standard normally distributed dataset with a mean of 0 and a variance of 1.
[0033] Through the aforementioned medical data cleaning algorithms, the messy multimodal raw clinical data is transformed into a standardized clinical data set with uniform format and controllable quality. This achieves high-fidelity noise reduction and standardization in the data preprocessing stage, providing a reliable data foundation for subsequent feature extraction.
[0034] For example, raw data from a patient with chronic gastritis was obtained, where pepsinogen I levels were missing, with two consecutive values of 70 ng / mL and 90 ng / mL. The missing value was calculated using linear interpolation, and the arithmetic mean of two consecutive values was taken, yielding 80 ng / mL. For serum gastrin-17 data, pg / mL was uniformly converted to pmol / L with a conversion factor of 0.35. The endoscopic text "scattered erosions visible in the antrum" was edited by removing HTML tags while preserving the core semantics. After Z-score standardization, the data distribution became more concentrated, significantly improving the accuracy of subsequent semantic mapping.
[0035] S1.2: Based on a predefined rule base for extracting entities from the gastroenterology specialty, natural language processing is performed on the endoscopic examination report text and pathological diagnosis description text in the standardized clinical data set to extract histological evolution keywords, lesion morphology descriptions and dysplasia grade identifiers to generate a structured text feature vector sequence.
[0036] Obtain endoscopic examination report text and pathological diagnosis description text from a standardized clinical data set as input objects for entity extraction.
[0037] The system invokes a pre-built gastroenterology specialty entity extraction rule base, which includes regular expression-based pattern matching rules and BiLSTM-CRF-based sequence labeling rules to identify specific medical terminology structures.
[0038] The endoscopic report text is processed by word segmentation and part-of-speech tagging. The sliding window mechanism is used to scan the text fragments and match the combination of histological evolution keywords, such as core terms like "intestinal metaplasia" and "dysplasia", and extract the corresponding semantic tags.
[0039] For pathological diagnosis description texts, a dependency parsing algorithm is applied to analyze sentence structure, identify modification relationships, and accurately extract morphological features of lesions, such as morphological attributes like "disordered glandular structure" and "increased nuclear-cytoplasmic ratio".
[0040] By combining the context, the extracted entities are disambiguated using a conditional random field model to determine the grade of dysplasia, distinguish between low-grade intraepithelial neoplasia and high-grade intraepithelial neoplasia, and assign each entity a corresponding confidence score.
[0041] The extracted histological evolution keywords, lesion morphology descriptions, and atypical hyperplasia grade markers are mapped to a predefined semantic space. The weights of each feature term are calculated using the TF-IDF algorithm to generate a high-dimensional sparse vector.
[0042] The high-dimensional sparse vectors are dimensionality reduced, and principal component analysis is used to retain the main semantic information, transforming them into a dense sequence of structured text feature vectors.
[0043] Through the above natural language processing operations, unstructured clinical text is transformed into a sequence of structured text feature vectors that can be understood by computers, realizing a multi-dimensional quantitative representation of the patient's pathological state and providing accurate text modal input for subsequent anchor point matching.
[0044] For example, the endoscopic report of a patient with chronic gastritis and intestinal metaplasia, "rough mucosa in the gastric antrum with visible grayish-white nodules, biopsy showing mild intestinal metaplasia," was processed. The rule base matched "rough mucosa" and "grayish-white nodules" as lesion morphological features, and "mild intestinal metaplasia" as a histological evolution keyword. The BiLSTM-CRF model identified "mild" as a degree modifier and "intestinal metaplasia" as a core entity. Dependency analysis confirmed that "mild" modifies "intestinal metaplasia." After mapping to the semantic space, a feature vector [0.85, 0.12, ..., 0.03] was calculated, where 0.85 represents the significance of the intestinal metaplasia feature. This vector sequence accurately reflects the patient's current pathological stage, significantly improving the accuracy of identifying subsequent disease stages.
[0045] S1.3: For time series data of biochemical tests in standardized clinical data sets, apply time series trend analysis algorithms to identify the slope of change, fluctuation amplitude and co-change patterns of key indicators, and encode the identification results into numerical trend feature labels to generate a structured numerical trend feature set.
[0046] Obtain time-series biochemical test data from a standardized clinical dataset, including historical test values and corresponding timestamps for key indicators such as pepsinogen I, pepsinogen II, gastrin-17, and Helicobacter pylori antibody titers.
[0047] Linear interpolation was performed on the biochemical test time series data to fill in the missing time point data, and the Z-score standardization method was used to eliminate the differences in the dimensions of different test indicators, generating a dimensionless standard time series matrix.
[0048] The sliding window least squares method is used to perform local linear fitting on each index sequence in the standard time series matrix, and the slope of change within each time window is calculated to quantify the rate of increase or decrease of the index in the short term.
[0049] The fluctuation amplitude of each indicator is calculated based on the difference between the maximum and minimum values within the sliding window, and a fluctuation feature vector reflecting the stability of the indicator is constructed by combining the frequency of slope sign changes between adjacent windows.
[0050] The Pearson correlation coefficient matrix was used to analyze the synergistic relationship between different test index sequences and to identify index combinations with significant statistical correlation, such as the negative correlation pattern between the pepsinogen ratio and gastrin-17.
[0051] The calculated slope of change, fluctuation amplitude, and co-correlation coefficient are mapped to a predefined set of numerical interval labels to generate structured numerical trend feature labels containing trend direction, fluctuation level, and coupling strength.
[0052] Through the aforementioned time-series trend analysis and feature encoding processing methods, the original biochemical test time series is transformed into a structured numerical trend feature set that can characterize the dynamic evolution of the disease course. This enables the quantitative capture of subtle changes in the patient's physiological state and provides high-precision numerical modal input for subsequent anchor point spatial projection.
[0053] For example, for the pepsinogen I (PGI) and pepsinogen II (PGII) sequences of a patient with chronic atrophic gastritis, a sliding window length of 3 months was set. After Z-score normalization, the slopes of the PGI sequence in the two most recent windows were calculated to be -0.15 and -0.18, respectively, indicating a continuous downward trend; the fluctuation range of the PGI / PGII ratio was 0.4, marked as moderate fluctuation; and the correlation coefficient between PGI and gastrin-17 was -0.85, marked as a strong negative correlation. The system encodes the above features into trend labels {PGI:'decreasing', PGI / PGII:'moderate fluctuation', Coupling:'strong negative correlation'}, forming a structured numerical trend feature set, which significantly improves the sensitivity of identifying the risk of precancerous lesion progression.
[0054] S1.4: Utilizing a multi-granularity semantic fusion engine, cross-modal alignment and weighted aggregation are performed on the structured text feature vector sequence, structured numerical trend feature set, and patient self-rating symptom scale scores to construct a multi-dimensional data object containing semantic type, confidence level, and timestamp, in order to generate a set of semantic units to be mapped.
[0055] The structured text feature vector sequence generated in S1.2, the structured numerical trend feature set generated in S1.3, and the patient self-report symptom scale scores are obtained as input data sources for the multi-granularity semantic fusion engine. A cross-modal time alignment mechanism is established, using the clinical event timestamp as a benchmark, to map text features, numerical trends, and scale scores to a unified time window, eliminating the temporal asynchrony bias of multi-source data.
[0056] A multidimensional semantic confidence weighted model was constructed, with initial weights assigned based on the reliability of the data source. Pathological diagnosis was given the highest weight, followed by endoscopic descriptions, while the weights of biochemical indicators and subjective scales were dynamically adjusted based on the coefficient of variation. A tensor product fusion algorithm was used to process heterogeneous features, projecting text vectors, numerical labels, and scale scalars into a high-dimensional semantic space to calculate the interaction strength between features of each modality.
[0057] The comprehensive semantic confidence score is calculated by weighting and summing the dynamic weights of each modality feature with the normalized semantic mapping value. A time decay factor is introduced to correct historical data, ensuring that recent clinical characteristics dominate the fusion results, generating a multidimensional data object containing semantic identifiers, comprehensive confidence scores, and the latest timestamp.
[0058] By using multi-granularity semantic fusion and weighted aggregation, the discrete multimodal features from the previous step are transformed into a set of semantic units to be mapped with spatiotemporal consistency, thereby achieving a precise quantitative representation of the patient's current disease status.
[0059] For example, for a patient with chronic atrophic gastritis and intestinal metaplasia, the text vector of "rough mucosa, visible blood vessels" from the endoscopy report is extracted, with a weight of 0.3; the encoded vector of "moderate intestinal metaplasia" from the pathology report is weighted at 0.4; the recent upward trend label of serum gastrin-17 is weighted at 0.2; and the GSRS symptom score of 8 is weighted at 0.1. A time alignment mechanism is applied to unify the above data to the most recent follow-up visit time. Assuming that the mapping values for each modality are 0.7, 0.8, 0.6, and 0.5 respectively, the comprehensive semantic confidence score is 0.3×0.7 + 0.4×0.8 + 0.2×0.6 + 0.1×0.5 = 0.70. The system generates a semantic unit containing the semantic type "progression stage of precancerous lesions," a confidence score of 0.70, and the current timestamp, significantly improving the accuracy and robustness of disease stage identification.
[0060] Step S2: Based on the histological evolution keyword combinations, symptom-sign coupling patterns, and synergistic changes in laboratory indicators extracted from the medical knowledge base, a disease course semantic anchor point library is constructed. Each disease course semantic anchor point in the library is encoded as a structured semantic vector containing semantic identifiers, confidence weights, time stability coefficients, and modal association information. Specifically, this includes:
[0061] S2.1: Based on the medical knowledge base, perform multi-source heterogeneous knowledge extraction operations to extract three types of original semantic feature sets: histological evolution keyword combinations, symptom and sign coupling patterns, and synergistic changes in test indicators.
[0062] This sub-step is located at the beginning of building a semantic anchor library for disease progression, aiming to transform unstructured medical knowledge into standardized semantic units that can be processed by computers. The input is a preprocessed structured medical knowledge base, including parsed PDF texts of clinical practice guidelines for gastroenterology, abstracts of high-impact journals indexed in PubMed, and national expert consensus documents.
[0063] Using named entity recognition models in natural language processing, the input text is deeply scanned to locate specific medical terms related to the course of gastroenterology. Focusing on the histological evolution dimension, key keyword sequences describing changes in mucosal morphology, grading of cellular atypia, and degree of glandular structural disorder are extracted, such as "intestinal metaplasia" and "low-grade intraepithelial neoplasia," forming discrete feature units.
[0064] Dependency parsing algorithms are applied to analyze the grammatical structure of symptom and sign descriptions, identifying causal or accompanying logic in subject-verb-object relationships. Combinations of clinical manifestations with spatiotemporal coupling characteristics are extracted; for example, associating "reflux esophagitis" with "nocturnal chest pain" and "dysphagia" to construct symptom-sign coupling pattern triples, clarifying the co-occurrence probability and logical dependency among the elements.
[0065] A temporal association rule mining algorithm was used to process the biochemical test data descriptions in the literature to identify the synergistic change patterns among indicators. Diagnostic-indicative indicator combinations, such as "elevated serum gastrin-17" and "decreased pepsinogen I / II ratio," were extracted, and the directionality and threshold range of their changes were recorded to form a set of synergistic change relationships among test indicators.
[0066] Through the above-mentioned multi-source heterogeneous knowledge extraction process, clinical experience and guideline recommendations scattered in different literature sources are transformed into a structured set of original semantic features, realizing the transformation from unstructured text to standardized semantic units, and providing a complete data foundation for subsequent calculation of confidence weights and construction of multidimensional association matrices.
[0067] For example, the system reads the "Chinese Consensus on Chronic Gastritis" and 100 core articles on Barrett's esophagus from the past five years. Using a BiLSTM-CRF model, 45 histological evolution keywords, such as "goblet cell appearance" and "increased nucleus-cytoplasmic ratio," are extracted. Dependency analysis identifies a strong coupling relationship between "heartburn" and "retrosternal pain," with a coupling coefficient set at 0.85. Mining reveals that the risk of atrophic gastritis is significantly increased when "Helicobacter pylori antibody is positive" and "serum PGI < 70 ng / mL," which is encoded as a co-variation rule. Finally, a raw feature set containing 300 semantic units is generated, covering the entire disease course from inflammation to precancerous lesions.
[0068] S2.2: Perform semantic label allocation and confidence weight calculation on the original semantic feature set to generate weighted semantic feature units with discriminative labels, wherein the confidence weight is quantified based on the evidence level and expert consensus.
[0069] Obtain the original semantic feature set of three categories extracted in step S2.1: histological evolution keyword combination, symptom-sign coupling pattern, and synergistic change relationship of test indicators.
[0070] For each feature unit in the original semantic feature set, a semantic labeling operation is performed according to the predefined classification system of clinical guidelines for gastroenterology, and the feature unit is labeled as pathological morphology, physiological function or biochemical indicator, respectively, to generate a semantic feature object with a clear category label.
[0071] Based on the evidence-based medicine evidence grading standard, the evidence level of the literature source corresponding to each semantic feature object is determined. Randomized controlled trials and systematic reviews are classified as high-level evidence, while expert consensus and case series studies are classified as medium- and low-level evidence, and mapped to the initial confidence base value.
[0072] An expert consensus quantification factor was introduced. The mean score of the clinical discriminative power of this feature by multiple gastroenterologists was statistically analyzed using the Delphi method, and the expert consensus coefficient was calculated to correct the initial confidence base.
[0073] The final confidence weights are calculated using a weighted fusion algorithm, as shown in the following formula:
[0074]
[0075] in, As confidence weights, The normalized evidence level score, This represents the expert consensus coefficient. and These are the moderating weight parameters for the level of evidence and expert consensus, respectively. + =1.
[0076] The calculated confidence weights are assigned to the corresponding semantic feature objects to form a weighted semantic feature unit containing semantic identifiers and confidence weights.
[0077] Through the above processing method, the unstructured original semantic features are transformed into weighted semantic feature units with quantifiable discriminative power, thereby achieving accurate representation of the credibility of key nodes in the follow-up path evolution.
[0078] For example, regarding the synergistic relationship of the test indicator "elevated serum gastrin-17 and a PGI / PGII ratio consistently below 3.0", its semantic label is assigned to the "biochemical indicator category". Based on the fact that this feature originates from the "Chinese Consensus on Chronic Gastritis" and multiple meta-analyses, its level of evidence is determined to be A, and the normalized score E is set to 0.9. After scoring by 5 experts, the consensus score is 4.5 out of 5, and the normalization coefficient C is 0.9. The moderating weights α and β are set to 0.6 and β to 0.4. Substituting into the formula, W = 0.6 × 0.9 + 0.4 × 0.9 = 0.9. This high confidence weight indicates that this feature has strong discriminative power in matching disease course anchors, significantly improving the accuracy of subsequent stage identification.
[0079] S2.3: Based on weighted semantic feature units, calculate the time stability coefficient and construct the Gaussian attractive potential field radius parameter to generate dynamic pathological semantic anchor point primitives with time-varying characteristics.
[0080] Obtain the weighted semantic feature units with discriminative labels output from step S2.2, and extract the historical observation data sequences that characterize the duration of disease progression and the phase maintenance cycle parameters defined in clinical guidelines.
[0081] Based on historical observation data sequences, the ratio of variance to mean of disease course status in the time dimension is calculated. The coefficient of variation method is used to quantify the natural fluctuation of the disease course stage represented by the semantic anchor point, and an initial time dispersion index is generated.
[0082] An exponentially decaying kernel function is introduced to smooth the initial time dispersion index, eliminating statistical noise interference caused by individual extreme cases, and constructing a basic time stability coefficient that reflects the inherent stability of the disease course.
[0083] The time stability coefficient is calculated using the following formula:
[0084]
[0085] in, The time stability coefficient, The standard deviation of the duration of each stage of the disease course. To prevent smoothing constants with denominators of zero.
[0086] Based on the fundamental time stability coefficient, the standard deviation parameter of the Gaussian attractive potential field is set, and the time stability is mapped to the spatial geometric radius to define the effective attraction range of the anchor point in the multidimensional semantic space.
[0087] By using the above processing method, the weighted semantic feature unit is transformed into a dynamic disease course semantic anchor primitive with time-varying characteristics, realizing mathematical modeling of the uncertainty of the duration of disease course stage in the evolution of follow-up path, and improving the robustness of transition judgment.
[0088] For example, targeting the semantic anchor point of "chronic atrophic gastritis with intestinal metaplasia," the average time from diagnosis to progression to dysplasia in 500 patients was extracted to be 36 months, with a standard deviation of 12 months. A smoothing constant ε was set to 0.01. Substituting these values into the formula, the time stability coefficient λ was calculated to be approximately 0.0069. Based on this coefficient, the radius parameter R of the Gaussian attraction potential field was set to three times the standard deviation, corresponding to the semantic distance unit of 36 months. When the patient's disease stage coordinates fluctuate within this radius, it is considered a normal evolution within the stage; if it exceeds this radius and enters the attraction domain of the "low-grade intraepithelial neoplasia" anchor point, a transition judgment is triggered. This mechanism effectively distinguishes between natural fluctuations in the disease course and substantial deterioration, significantly reducing the false alarm rate.
[0089] S2.4: The dynamic disease course semantic anchor primitives are processed using a cross-modal data association analysis algorithm to construct modal association information to characterize the coupling tightness between text, numerical and image features, so as to generate complete multidimensional associated disease course semantic anchor primitives.
[0090] The dynamic disease course semantic anchor primitives generated by S2.3 are obtained. These primitives contain feature vectors from three modalities: text, numerical, and image. Standardization preprocessing is performed on the multimodal feature vectors to eliminate the interference of dimensional differences in correlation calculation and ensure the comparability of data across different dimensions. A cross-modal attention mechanism model is constructed, using text modal features as query vectors and numerical and image modal features as key vectors to calculate semantic alignment scores between modalities. The semantic correlation between pathological evolution keywords and biochemical indicator fluctuation trends in the text description is quantified using dot product operations to generate an initial correlation weight matrix. A mutual information metric is introduced to evaluate the degree of information sharing among different modal features in disease course stage discrimination, correcting spurious associations caused by accidental co-occurrence. Based on the corrected correlation weights, symmetric modal correlation information is constructed, with matrix elements representing the coupling tightness between specific text semantic units and specific numerical change patterns. The correlation strength matrix is sparsified, removing weak correlation edges below a preset threshold and retaining strong coupling relationships with significant clinical significance, reducing the complexity of subsequent matching calculations. The sparsed association strength matrix is embedded into the disease course semantic anchor primitive to form a complete multidimensional association disease course semantic anchor primitive.
[0091] By employing cross-modal attention mechanisms and mutual information correction processing, discrete multimodal features are transformed into structured correlation matrices representing intrinsic coupling relationships. This enables the precise characterization of the synergistic changes in multi-source clinical evidence through semantic anchors of the disease course, significantly improving the clinical interpretability and robustness of the follow-up path evolution criteria.
[0092] For example, for the anchor point "chronic atrophic gastritis with intestinal metaplasia", textual feature vector T (containing "reduced glands" and "goblet cell hyperplasia") and numerical feature vector N (containing "pepsinogen I / II ratio" and "serum gastrin-17") are extracted. The hidden layer dimension of the attention mechanism is set to 128, and the dot product similarity matrix of T and N is calculated. After mutual information correction, the mutual information value between "goblet cell hyperplasia" and "pepsinogen I / II ratio < 3.0" is found to be 0.85, significantly higher than the random background value of 0.12. A 4x4 association strength matrix is constructed, where the corresponding element value is 0.82. A sparsity threshold of 0.3 is set to retain this strong association edge. In the final generated anchor primitive, this association matrix clearly indicates the strong coupling relationship between morphological changes and the decline in biochemical indicators, providing a high-precision matching benchmark for subsequent patient data projection.
[0093] S2.5: Encapsulate the multidimensional associated disease course semantic anchor primitives into structured semantic vectors containing semantic identifiers, confidence weights, time stability coefficients, and modal association information, so as to build a disease course semantic anchor library that can be used for real-time projection matching.
[0094] Step S3: Input the set of semantic units to be mapped into the disease course semantic anchor point library for matching and mapping. Use a time-series pattern matcher to identify whether the numerical sequence forms the cooperative change pattern required for the anchor point. Then, weightedly fuse all matching results to generate the patient's disease course stage coordinates in the anchor point space. The disease course stage coordinates are represented as a dynamic distribution area with a confidence ellipsoid, and its centroid position reflects the most likely current disease course stage. Specifically, this includes:
[0095] S3.1: Obtain the structured text feature vector sequence from the set of semantic units to be mapped, perform vector space projection calculation based on the semantic identifiers defined in the disease course semantic anchor library, and transform the discrete clinical text fragments into high-dimensional semantic feature vectors to generate a text modality anchor matching degree sequence.
[0096] Obtain the structured text feature vector sequence from the set of semantic units to be mapped. The sequence contains discrete semantic fragments generated by NLP processing of endoscopy reports and pathological descriptions, and their corresponding word embedding vectors.
[0097] Based on the predefined semantic identifiers in the disease course semantic anchor library, a high-dimensional semantic projection space is constructed. The dimension of this space is determined by the sum of the feature dimensions of all unique semantic units in the anchor library, ensuring that patient data and anchor data are aligned in the same vector space.
[0098] For each discrete clinical text fragment, the cosine similarity between the text fragment vector and the anchor semantic vector is calculated to quantify the semantic proximity of the text fragment to a specific disease stage.
[0099] A confidence weight is introduced as a correction coefficient for similarity. The original cosine similarity is multiplied by the confidence weight of the corresponding anchor point to generate a weighted semantic matching score, so as to reflect the difference in contribution of different levels of evidence to the stage judgment.
[0100] Max pooling or average aggregation is performed on the weighted matching scores of multiple text segments under the same semantic type to eliminate local noise interference and generate the overall matching degree scalar of the semantic type at the current time.
[0101] All semantic type matching scalars are concatenated in a preset order to form a multidimensional text modality anchor matching sequence, which fully represents the distribution probability of the patient's current text data at each disease stage anchor.
[0102] By using the aforementioned vector space projection and weighted aggregation processing methods, unstructured discrete clinical text fragments are transformed into quantifiable text modality anchor matching degree sequences, achieving a precise mapping from natural language descriptions to mathematical space coordinates, and providing standardized text evidence input for subsequent multimodal fusion.
[0103] For example, for a patient with chronic atrophic gastritis, the endoscopy report extracted two key segments: "thinned mucosa" and "visible blood vessels." In the anchor library, the cosine similarity between the semantic vector corresponding to the "chronic atrophic gastritis" anchor and this segment is 0.85 and 0.78, respectively. If the confidence weight of this anchor is 0.9, the weighted scores are 0.765 and 0.702, respectively. After average aggregation, the text matching degree of this patient in the semantic type of "chronic atrophic gastritis" is 0.7335. Similarly, other anchor types are calculated, and finally a matching degree sequence of length 10 is generated, where the maximum value of 0.7335 points to the atrophic gastritis anchor, accurately reflecting the patient's current text semantic feature attribution.
[0104] S3.2: Obtain the set of structured numerical trend features in the set of semantic units to be mapped, and use the time-series pattern matcher built into the disease course semantic anchor point library to perform sliding window correlation analysis to identify whether the cooperative change relationship of the test indicators meets the cooperative change pattern required by the anchor point, so as to generate numerical modal anchor point trigger flags.
[0105] Obtain the structured numerical trend feature set from the set of semantic units to be mapped, and extract the time series data sequence of the test indicators, which includes timestamps, indicator names, and normalized values. Construct a sliding window mechanism, setting window length and step size parameters, to segment and truncate the time series data of the test indicators, generating local time segment subsets. For each local time segment subset, calculate the Pearson correlation coefficient between each test indicator to quantify the strength of linear co-change among the indicators.
[0106] The calculated correlation coefficient matrix is dynamically time-warped and matched with predefined collaborative change pattern templates in the disease course semantic anchor library to calculate the distance score between the actual sequence and the template sequence. A confidence threshold is set; when the distance score is below the threshold and the correlation coefficient direction is consistent with the template, the local segment is determined to satisfy the collaborative change pattern of a specific anchor. All sliding windows and all anchor templates are traversed to generate a Boolean-type numerical modal anchor trigger flag sequence.
[0107] By using sliding window correlation analysis and dynamic template matching, continuous biochemical test numerical sequences are transformed into discrete pattern trigger signals, enabling accurate identification and quantitative labeling of the co-evolutionary characteristics of test indicators.
[0108] For example, targeting the synergistic decline pattern of serum gastrin-17 and the PGI / PGII ratio, a window length of 3 months and a step size of 1 month were set. The correlation coefficient r between the two indicators within the window was calculated to be -0.85, meeting the requirements of the negative correlation template. The dynamic time-normalized distance score was 0.12, lower than the preset threshold of 0.2. The system generated a trigger flag of 1, indicating the co-evolutionary characteristics of indicators related to the progression of precancerous lesions within this time period, significantly improving the specificity of disease stage identification.
[0109] S3.3: Based on the text modal anchor matching degree sequence and the numerical modal anchor trigger flag, and combined with the modal association information corresponding to each anchor in the disease course semantic anchor library, perform multi-source information weighted fusion operation to aggregate the matching evidence of heterogeneous modalities into a unified scalar confidence score to generate a multi-dimensional semantic fusion matching score vector.
[0110] Obtain the text modal anchor matching degree sequence and the numerical modal anchor trigger flag as the initial input data for multi-source information fusion.
[0111] Retrieve modal association information for the corresponding disease stage from the disease course semantic anchor point database, and extract the coupling weight coefficients of text feature dimension and numerical feature dimension.
[0112] Normalization is performed on the text modality anchor matching degree sequence to eliminate the differences in the dimensions of different semantic units and generate a standardized text confidence vector.
[0113] The numerical modal anchor trigger flag is converted into a continuous confidence score, which is then mapped to a real variable in the range of 0 to 1 according to the level of trigger strength.
[0114] A weighted linear combination algorithm is used to multiply the standardized text confidence vector and the numerical confidence score by the corresponding coupling weight coefficients and sum them to obtain the multidimensional semantic fusion matching score.
[0115] The calculated fusion matching score vector is subjected to smoothing filtering to suppress drastic fluctuations in scores caused by noise in a single data set.
[0116] The smoothed fusion matching score is mapped to a uniform scalar confidence score, which represents the degree of fit between the patient's current state and the semantic anchor of a specific disease course.
[0117] By using weighted fusion of multi-source information, matching evidence from heterogeneous modalities is aggregated into a unified scalar confidence score, generating a multi-dimensional semantic fusion matching score vector, thereby achieving quantitative integration and consistency assessment of cross-modal clinical evidence.
[0118] For example, for the anchor point of chronic atrophic gastritis with intestinal metaplasia, the modal association information is assigned a text weight wt of 0.6 and a numerical weight wn of 0.4. The semantic matching degree V of "reduced glands" extracted from the patient's endoscopic report is normalized to 0.85. The triggering flag N for the co-change of serum gastrin-17 and PGI / PGII ratio is mapped to 0.75. Substituting into the weighted linear combination calculation: S = 0.6 × 0.85 + 0.4 × 0.75 = 0.51 + 0.30 = 0.81. This scalar confidence score of 0.81 is higher than the preset threshold of 0.7, and is confirmed as a valid match. If only text or a single indicator is relied upon, the confidence score may be lower than the threshold, leading to missed detections. This method significantly improves the robustness and accuracy of identifying complex disease stages through weighted fusion.
[0119] S3.4: Obtain the multidimensional semantic fusion matching score vector and the time stability coefficient of each anchor point in the disease course semantic anchor point library, construct the dynamic error covariance matrix based on the Gaussian distribution probability density function, and map the scalar confidence score to the spatial uncertainty parameter to generate a confidence ellipsoid parameter set characterizing the range of positional fluctuations.
[0120] The multidimensional semantic fusion matching score vector and the temporal stability coefficients of each anchor point in the disease course semantic anchor point library are obtained as input parameters for constructing the spatial uncertainty model.
[0121] The variance scaling factor in the time stability coefficient is extracted, and combined with the preset baseline noise level, the standard deviation parameter of the semantic features in each dimension is calculated to quantify the degree of dispersion in the current disease stage determination.
[0122] Based on the calculated standard deviation parameter, a diagonal covariance matrix is constructed, where the diagonal elements are the squares of the variances of each dimension, and the off-diagonal elements are initialized to zero, representing the statistical independence assumption between the semantic dimensions.
[0123] Modal correlation information is introduced to correct the initial diagonal covariance matrix, and correlation information between modalities is injected through matrix multiplication to generate a dynamic error covariance matrix that reflects the coupling relationship of real clinical data.
[0124] By utilizing the eigenvalue decomposition results of the dynamic error covariance matrix, the principal axis direction and semi-axis length of the confidence ellipsoid are determined, and the scalar confidence scores are mapped to uncertainty distribution parameters in geometric space.
[0125] Based on the preset confidence level threshold, the Mahalanobis distance boundary is calculated, and a confidence ellipsoid parameter set containing the principal axis vector, semi-axis length, and center coordinates is generated to fully characterize the range of positional fluctuations of the patient in the anchor point space.
[0126] By using the above processing method, the scalar matching score of the previous step is transformed into a spatial uncertainty parameter with geometric meaning, realizing the probabilistic expression and visual definition of the disease stage determination result, which significantly improves the robustness and interpretability of the follow-up path evolution decision.
[0127] For example, for patients with chronic atrophic gastritis, their multidimensional semantic fusion matching score vector is [0.85, 0.72, 0.60], and the corresponding anchor point's time stability coefficient is 0.9. Setting the baseline noise level to 0.1, the standard deviations for each dimension are calculated to be 0.05, 0.06, and 0.07, respectively. After constructing the initial diagonal covariance matrix, it is corrected using modal association information to obtain the dynamic error covariance matrix. Through eigenvalue decomposition, the principal axis direction vector of the confidence ellipsoid is determined to be [1, 0, 0], with semi-axis lengths of 0.15, 0.18, and 0.21, respectively. At a 95% confidence level, the Mahalanobis distance boundary value is calculated to be 2.45. The generated confidence ellipsoid parameter set clearly defines the spatial distribution range of the patient's current disease status, effectively avoiding misjudgments caused by fluctuations in a single indicator and ensuring the accuracy of follow-up plan adjustments.
[0128] S3.5: Based on multi-dimensional semantic fusion matching score vector, the spatial centroid position is determined and the geometric boundary is constructed by combining the confidence ellipsoid parameter set. The centroid position and geometric boundary are encapsulated into structured data objects to generate the disease stage coordinates of the dynamic distribution area with confidence ellipsoid in the anchor space, which reflects the patient's current most likely disease stage.
[0129] Obtain the multidimensional semantic fusion matching score vector output from step S3.3 and the temporal stability coefficients of each anchor point in the disease course semantic anchor point library constructed in step S2, as the basic input data for spatial geometric modeling.
[0130] A centroid-weighted localization algorithm (parameters: multidimensional semantic fusion matching score vector, anchor center coordinate set) is employed to achieve optimal patient position estimation in the anchor point space. Specifically, the components of the multidimensional semantic fusion matching score vector are arranged in a preset order according to the anchor points in the disease course semantic anchor point library. Each component value represents the degree of fit between the patient's current state and the corresponding anchor point, and each component is regarded as the gravitational weight of the corresponding disease course semantic anchor point. Combined with predefined anchor point space basis vectors, the weighted centroid coordinates of the patient's state in the multidimensional semantic space are calculated. This process eliminates the local bias of single-modal matching, generates a geometric center point reflecting the overall disease course state of the patient through global weighted aggregation, and obtains the spatial centroid position vector.
[0131] Furthermore, through a structured encapsulation protocol (parameters: spatial centroid location vector, confidence ellipsoid parameter set, and timestamp identifier), the standardized construction function of real-time patient disease progress status data objects is realized, and disease stage coordinates of dynamically distributed regions with confidence ellipsoids are generated. The spatial centroid location vector is used as the core location attribute of the data object, the confidence ellipsoid parameter set is used as the uncertainty boundary attribute, and a timestamp identifier of the current follow-up time is attached, encapsulating it into a unified structured data object. This object not only contains the location of the patient's most likely current disease progress stage but also includes a spatial coverage range based on the confidence level of multi-source evidence fusion, forming a description of a dynamically distributed region with clear geometric boundaries.
[0132] By using the above processing method, the scalar matching score of the previous step is transformed into a spatial uncertainty parameter with geometric meaning, realizing the probabilistic expression and visual definition of the disease stage determination result. This significantly improves the robustness and interpretability of the follow-up path evolution decision, ensuring that subsequent transition determination can be based on trajectory data with confidence intervals, and effectively avoiding misjudgments caused by noise from a single measurement.
[0133] Step S4: Define a Gaussian attractive potential field based on the time stability coefficient of each semantic anchor point in the disease course semantic anchor point library to form the anchor point attraction domain, and calculate the deviation trajectory of the centroid position of the disease course stage coordinates relative to the current anchor point attraction domain and the adjacent anchor point attraction domains to generate a disease course stage transition judgment signal. Specifically, this includes:
[0134] S4.1: Based on the time stability coefficient of each disease semantic anchor point in the disease course semantic anchor point library, the potential field parameterization transformation of the time stability coefficient is performed using the Gaussian kernel function mapping mechanism to generate a set of Gaussian attractive potential field distribution parameters corresponding to each disease course semantic anchor point.
[0135] The temporal stability coefficient of each disease course semantic anchor point in the disease course semantic anchor point library is obtained. This coefficient characterizes the persistence and fluctuation range of a specific clinical stage in the time dimension. The temporal stability coefficient is normalized and mapped to a preset potential field strength range to eliminate scale bias caused by differences in data magnitude across different disease stages. Using a Gaussian kernel function mapping mechanism, the normalized temporal stability coefficient is converted into a Gaussian distribution standard deviation parameter, which directly determines the spatial coverage radius of the attractive potential field. Based on the transformed standard deviation parameter, a Gaussian probability density function with the anchor point center as the origin is constructed, defining the decay law of the potential field in the multidimensional semantic space. The distribution parameters of the Gaussian probability density function in each dimension are calculated, generating a set of Gaussian attractive potential field distribution parameters containing the mean vector and covariance matrix.
[0136] Through the above potential field parameterization transformation, the abstract time stability index is transformed into a concrete spatial geometric constraint parameter, realizing the quantitative modeling of the uncertainty of the disease stage boundary.
[0137] For example, the time stability coefficient of the anchor point for chronic atrophic gastritis with intestinal metaplasia is 0.85. After normalization, the mapping value is 0.92. The standard deviation parameter σ obtained by Gaussian kernel transformation is 0.75. A Gaussian distribution in the three-dimensional semantic space is constructed, with the mean vector representing the coordinates of the anchor point center and the diagonal elements of the covariance matrix all being σ², i.e., 0.5625. The generated set of distribution parameters clearly defines the influence range of the anchor point in the semantic space, ensuring that it remains stably classified into the current stage even with slight fluctuations in the condition, significantly improving the robustness of disease progression identification.
[0138] S4.2: Based on the Gaussian attractive potential field distribution parameter set, set the potential energy threshold boundary, and perform a spatial neighborhood delimitation operation on the Gaussian attractive potential field distribution parameter set to construct a multidimensional anchor point attraction domain topology structure containing the current disease course semantic anchor point and its adjacent disease course semantic anchor points.
[0139] A set of Gaussian attraction potential field distribution parameters is obtained, and the center coordinate vector and standard deviation parameter generated by mapping the time stability coefficient are extracted for each disease course semantic anchor point. A potential energy threshold boundary constant is set, which is predefined as a probability value at a specific quantile based on clinical diagnostic confidence requirements, used to define the effective influence range of the anchor point. Based on the multidimensional Gaussian probability density function, an equipotential surface equation is constructed with the anchor point center as the origin and the standard deviation as the scale. By solving the equipotential surface equation, the spatial radius boundary under a given potential energy threshold is calculated, forming a closed geometric neighborhood. The above boundary calculation is performed on all anchor points in the disease course semantic anchor point library, generating independent spherical or ellipsoidal geometric descriptors of the attraction domain. Anchor point pairs in the anchor point space with an Euclidean distance less than twice the radius of the maximum attraction domain are retrieved, identifying adjacent anchor point combinations with a risk of spatial overlap. The volume and overlap rate of the intersection region between the attraction domains of adjacent anchor points are calculated, and the ambiguity of the stage transition zone is assessed. The geometric descriptors of the independent attraction domains of each anchor point are topologically associated with the overlap matrix of adjacent anchor points to construct a multidimensional anchor point attraction domain topology graph containing node attributes and edge weights.
[0140] By defining spatial neighborhoods, abstract potential field parameters are transformed into concrete geometric topological structures, thereby making the spatial boundaries of disease stages explicit and providing a precise spatial reference benchmark for subsequent trajectory crossing detection.
[0141] For example, for the anchor point of chronic gastritis with intestinal metaplasia, the standard deviation of its time stability coefficient mapping is 0.8. The potential energy threshold is set to correspond to a Mahalanobis distance squared value of 2.3. The calculated radius of the attraction domain of this anchor point in the 3D semantic space is 1.2 units. The center of the adjacent atypical hyperplasia anchor point is 1.5 units away from the current anchor point, and its attraction domain radius is 1.0 unit. When two spheres intersect, the overlapping area volume is calculated to be 15%. The system records this overlap relationship and constructs a topological subgraph containing two nodes and an edge with a weight of 0.15. This structure clearly defines the transition buffer from inflammation to precancerous lesions, ensuring that patients are not misjudged as having stage transitions due to minor noise when their indicators fluctuate, significantly improving the robustness of stage identification.
[0142] S4.3: Obtain the disease stage coordinates of the dynamic distribution region of the patient with confidence ellipsoid in the anchor space, extract the centroid position of the disease stage coordinates as the tracking reference point, and calculate the Euclidean distance offset sequence of the tracking reference point relative to the center of the anchor attraction domain corresponding to the current disease semantic anchor point in the multidimensional anchor attraction domain topology within a continuous time window.
[0143] The system acquires the disease stage coordinate data of the dynamically distributed region of the patient's disease course in the anchor point space with a confidence ellipsoid. This data structure is then parsed to extract the centroid coordinate vector representing the most likely location of the current disease stage. The extracted centroid coordinate vector is set as the trajectory tracking reference point, and a continuous time window counter is initialized in preparation for multi-time-step position offset calculations.
[0144] The system invokes the multidimensional anchor attraction domain topology data to retrieve the set of neighboring anchors directly connected to the current disease course semantic anchor, and obtains the center coordinate vector of each anchor in the semantic space. For each coordinate update within a continuous time window, the Euclidean distance between the tracking reference point and the center of the current disease course semantic anchor is calculated.
[0145] The Euclidean distance offset of the tracking reference point relative to the current anchor center C_curr at the t-th update is calculated using the following formula. :
[0146]
[0147] in, , , for The three-dimensional semantic coordinate components of the reference point are tracked continuously. This is the coordinate vector of the current anchor point center.
[0148] Simultaneously calculate the Euclidean distances of the tracking reference point relative to the centers of all adjacent anchor points, and construct a multidimensional distance vector sequence containing the current anchor point and adjacent anchor points. Store the calculated single-step Euclidean distance offsets in a buffer in timestamp order to form a sequence of Euclidean distance offsets reflecting the patient's disease progression trajectory in semantic space.
[0149] By using the above processing method, discrete patient disease stage coordinates are transformed into continuous time series distance indicators, realizing a quantitative description of the disease progression trajectory and providing an accurate data foundation for subsequent cross-domain traversal detection.
[0150] For example, for a patient with chronic atrophic gastritis, the current anchor point is "mild atrophy," with center coordinates (1.2, 0.8, 0.5). At time t1, the patient's coordinates are (1.3, 0.9, 0.6), and d is calculated. t1 =0.173. Given the coordinates at time t2 (1.5, 1.1, 0.8), d is calculated. t2 =0.458. The center of the "moderately shrunken" adjacent anchor point (2.0, 1.5, 1.0) is 0.866 at time t2 relative to this adjacent anchor point. The system records the offset sequence [0.173, 0.458] and marks that at time t2 the offset from the original center increases significantly and the distance from the adjacent center decreases, forming preliminary deviation trajectory characteristics.
[0151] S4.4: Based on the spatial overlap of the Euclidean distance offset sequence and the anchor attraction domains corresponding to adjacent pathological semantic anchors, a cross-domain crossing detection algorithm is performed on the movement path of the tracking reference point to generate a deviation trajectory feature vector representing the migration of the centroid position from the original anchor attraction domain to the adjacent anchor attraction domain.
[0152] Obtain the Euclidean distance offset sequence generated by S4.3 and the multidimensional anchor point attraction domain topology constructed by S4.2, and extract the spatial coordinate vector of the tracking reference point and the geometric boundary parameters of the adjacent anchor point attraction domain within the current time window.
[0153] Based on the definition of overlapping regions in the topology, the relative potential energy gradient of the tracking reference point with respect to the original anchor center and the target adjacent anchor center is calculated. The vector projection algorithm is used to decompose the three-dimensional spatial displacement into a normal component along the line connecting the two anchor points and a tangential component perpendicular to the line connecting the two anchor points.
[0154] A cross-domain crossing discrimination function is constructed, which comprehensively considers the rate of change of the sign of the normal displacement and the amplitude stability of the tangential displacement to exclude non-substantial oscillatory crossing behavior caused by measurement noise. A crossing confidence index is calculated by combining the normal displacement increment, the angle between the displacement vector and the anchor point line, the width of the overlapping area of the attraction domain, and the standard deviation of the tangential displacement. A valid cross-domain crossing is determined to have occurred when the crossing confidence index exceeds a preset threshold and the normal displacement continuously points towards the center of the adjacent anchor point.
[0155] The centroid coordinates, velocity vector, and corresponding semantic evidence labels at the moment of crossing are recorded and encapsulated into a deviation trajectory feature vector. The deviation trajectory feature vector includes at least a deviation direction identifier, a deviation magnitude value, a status marker for two consecutive position updates, the centroid coordinates at the moment of crossing, and the corresponding semantic evidence labels.
[0156] Through the aforementioned cross-domain traversal detection algorithm, discrete spatial position offsets are transformed into feature vectors representing the migration direction and deterministic deviation trajectory of disease stages, realizing a logical leap from static position matching to dynamic path evolution, and providing a highly robust spatiotemporal basis for subsequent generation of disease stage transition judgment events.
[0157] For example, in the scenario of transitioning from chronic atrophic gastritis to intestinal metaplasia, the width of the overlap region of the attraction domain is set to 1.5 units. In two consecutive follow-up visits of a patient, the normal displacement increment was 0.8 units, the angle between the displacement vector and the connecting line was 15 degrees, and the standard deviation of the tangential displacement was 0.2 units. The calculated crossing confidence index was approximately 0.51. If the preset crossing threshold is 0.45, it is considered a valid crossing. The system records the trajectory feature vector of this crossing, marking it as "migration towards the intestinal metaplasia anchor point," and associates it with evidence of elevated serum gastrin-17 that triggered this migration, ensuring that subsequent adjustments to the follow-up plan have a clear pathological basis.
[0158] S4.5: Based on the status flags of two consecutive updated positions falling into the attraction domain of adjacent anchor points recorded in the deviation trajectory feature vector, and the magnitude of deviation from the original anchor point attraction domain, perform multi-condition logical AND operation judgment processing to generate a disease stage transition judgment signal indicating a substantial change in the disease stage.
[0159] like Figure 2 As shown, Figure 2 This is a flowchart of the logic for generating the disease stage transition judgment signal. Specifically, it includes: extracting the two consecutive update position status markers and the magnitude values of the deviation from the original anchor point attraction domain recorded in the deviation trajectory feature vector, as the input data source for disease stage transition judgment.
[0160] The state markers of two consecutively updated positions are analyzed to confirm whether the centroid positions fall within the attraction domain of adjacent semantic anchor points of the disease course, and a double-period neighborhood falling Boolean identifier sequence is generated.
[0161] Calculate the Euclidean distance between the current centroid position and the original semantic anchor point center, and compare it with the original anchor point's attraction domain radius to generate a quantitative index of deviation magnitude.
[0162] The following logical judgment formula is used to perform a multi-condition AND operation to generate a disease stage transition judgment signal:
[0163]
[0164] in, To determine the transition event signal, and These are the status flags for the positions in the first two time windows falling into the attraction domain of adjacent anchor points (1 for falling in, 0 for not falling in). The distance between the current centroid and the original anchor point is the Euclidean distance. This is the threshold value for the original anchor point's attraction domain radius. This signal serves as a preliminary judgment result, triggering a more stringent secondary confirmation process in subsequent steps S5.1.
[0165] When the judgment result E is true, instantiate the disease stage transition judgment event object, and encapsulate the trigger timestamp, original anchor point identifier, target anchor point identifier, and deviation trajectory feature vector.
[0166] Through multi-condition logic and operation judgment processing, the geometric changes of spatial trajectory are transformed into discrete event signals that indicate substantial changes in the disease course, thereby achieving precise triggering control of the evolution of the follow-up path.
[0167] For example, in a patient with chronic gastritis and intestinal metaplasia, the system detects that at time t-1, the centroid falls into the attraction domain of the dysplasia anchor point (M1=1), and at time t, the centroid still falls into the same domain (M2=1). The distance D from the current centroid to the center of the chronic gastritis anchor point is calculated. curr The radius of the anchor attraction domain for chronic gastritis is 1.8 units, while the radius R is 1.2 units. Substituting into the formula: E = 1∧1∧(1.8>1.2) = 1. The system generates a transition event signal, marking the migration of the disease course from the stable phase to the progressive phase, triggering the subsequent path reconstruction process.
[0168] Step S5: If the path migration mechanism is initiated in response to the disease stage transition judgment signal and the centroid position is updated twice consecutively, falling within the attraction domain of the adjacent anchor point and deviating from the original anchor point domain by more than a threshold, then an incremental reconstruction instruction for the follow-up path structure is generated. Specifically, this includes:
[0169] S5.1: Respond to the disease stage transition judgment signal, obtain the trajectory data of the centroid position of the patient's disease stage coordinates updated twice consecutively and the current anchor point attraction domain boundary parameters, and use the dual-cycle domain fall detection algorithm to perform logical verification on the trajectory data in order to generate a topology migration trigger signal that satisfies the condition of continuously falling into the adjacent anchor point attraction domain and deviating from the original anchor point attraction domain by more than a preset threshold.
[0170] It should be noted that step S4.5 generates a preliminary disease stage transition judgment signal, which is triggered when the centroid position deviates from the original anchor point's attraction domain by more than the original anchor point's radius threshold. The transition condition is a set of judgment logic that re-confirms the validity of the aforementioned preliminary judgment signal, employing stricter judgment criteria. It includes two core judgment elements: the centroid position must fall within the adjacent anchor point's attraction domain in two consecutive updates, and the centroid position must deviate from the original anchor point's attraction domain by more than 1.2 times the original anchor point's radius. The judgment basis for the transition condition originates from the logical verification results of the centroid's trajectory data updated twice consecutively in step S5.1 based on the dual-period domain fall-in detection algorithm, and the comparison results based on the deviation distance and the deviation threshold. Only when both of these elements are satisfied is it judged as a valid disease stage substantial transition, and the subsequent path migration mechanism is activated. The deviation threshold is 1.2 times the original anchor point's radius, used to exclude non-substantial oscillatory crossing behavior caused by single measurement noise or random fluctuations.
[0171] In response to the disease progression transition signal, the trajectory data of the centroid position of the patient's disease progression coordinates updated twice consecutively, as well as the boundary parameters of the current anchor point's attraction domain, are obtained. The centroid coordinate vector C of the patient's semantic space at the two most recent time windows, T-1 and T, is extracted. t-1 With C t And the current disease course anchor point A curr and adjacent candidate anchor point A adj Gaussian attraction field radius parameter R curr With R adj .
[0172] The centroid C is calculated using a two-period domain fall-in detection algorithm. t-1 With C t to the center O of the adjacent anchor points respectively adj Euclidean distance d prev With d curr Determine whether two consecutive positions fall within the attraction domain of adjacent anchor points.
[0173] Calculate the centroid C t Relative to the original anchor point center O curr Deviation distance d dev Set the Thresh deviation threshold. dev The radius is 1.2 times the original anchor point radius to eliminate noise fluctuations. Perform logical verification: if the target falls within the attraction domain of the adjacent anchor point twice consecutively and d... dev Greater than Thresh dev If so, the topology migration triggering condition is met.
[0174] Generate a topology migration trigger signal that includes trigger type, target anchor point identifier, and confidence score. This signal serves as the initiation command for subsequent path node value assessment.
[0175] By using dual-cycle continuous fall-in verification and deviation magnitude threshold determination, abstract spatial trajectory data is transformed into definite topological migration trigger signals, thereby achieving noise reduction and confirmation of disease stage transition determination and significantly reducing the risk of incorrect adjustment of follow-up plans due to single data anomalies.
[0176] For example, in patients with chronic atrophic gastritis, the distance from the centroid to the center of the dysplastic anchor point at time T-1 is 0.9 units, and the distance at time T is 0.85 units. The radius R of the anchor point's attraction domain is... adj The value is 1.0 unit, and it falls into the attraction domain of the adjacent anchor point twice consecutively. The original inflammatory anchor point radius R curr The deviation threshold is set to 0.96 units. At time T, the distance between the centroid and the original anchor point is 1.1 units, which is greater than 0.96 units. The system determines that the condition of continuously falling into the adjacent domain and moving away from the original domain is met, and generates a topology migration trigger signal pointing to the heterogeneous growth stage, triggering the subsequent follow-up path reconstruction process.
[0177] S5.2: In response to the topology migration trigger signal, the pre-built path node value assessment model is invoked to perform clinical sustainability analysis on the basic monitoring project nodes in the original follow-up path. The node retention screening rules are used to remove the failed re-examination nodes and mark the set of retained nodes with cross-stage clinical value to generate a subset of the stock path containing basic monitoring project nodes to be retained.
[0178] like Figure 3 As shown, Figure 3 This is a flowchart illustrating the logic of node persistence analysis and the generation of subsets of existing paths, specifically including:
[0179] In response to the topology migration trigger signal, a pre-built path node value assessment model is invoked to perform a multi-dimensional quantitative analysis of the clinical sustainability of basic monitoring nodes and existing re-examination nodes requiring upgrades in the original follow-up path. Clinical attribute feature vectors of each node in the original path are extracted, including examination type identifier, last execution time interval, historical abnormality marker status, and guideline recommendation level. A node sustainability scoring function is constructed based on gastroenterology treatment guidelines to calculate the retention probability scores of basic retention nodes and nodes requiring upgrades.
[0180] The node persistence score is calculated using the following formula. :
[0181]
[0182] in, The guideline recommendation weight reflects the clinical necessity of this examination at a specific stage of the disease. To review the necessity coefficient, For time decay weight, For the current moment, The last execution time, This represents the maximum effective interval.
[0183] Furthermore, by introducing a node type differentiation mechanism, the calculated survival score is compared with a preset threshold to achieve node triage. Nodes with scores higher than the retention threshold are determined to have cross-stage clinical value, are labeled "retain," and included in the existing pathway subset. Nodes with scores lower than the retention threshold but higher than the upgrade threshold are determined to require functional enhancement, are labeled "requires upgrade," and included in the existing pathway subset. These nodes will be upgraded to composite monitoring nodes in subsequent steps using a multimodal detection item fusion algorithm. Nodes with scores lower than the upgrade threshold are marked as invalid and removed from the pending list.
[0184] By using the above processing methods, the original follow-up pathway is transformed into a subset of existing pathways that has been filtered for clinical value and includes retained nodes and nodes that need to be upgraded. This enables the accurate retention of follow-up resources, the automatic cleaning of invalid nodes, and the functional reservation of key nodes, significantly improving the targeting and compliance of the follow-up plan, and providing a structured input basis for subsequent incremental reconstruction.
[0185] For example, for the "annual gastroscopy" node in the original pathway for patients with chronic gastritis and intestinal metaplasia, the guideline weight W g Set to 0.8, necessity of re-examination C rev The value is 0.9, and the maximum effective interval T is 3 months since the last examination. max If the time period is 12 months, then the score for the time item is 1 - 3 / 12 = 0.75. Assume W... d The score is 0.2, and the calculated survival score is S = (0.8 × 0.9 + 0.2 × 0.75) / (0.8 + 0.2) = 0.87, which is higher than the retention threshold of 0.6. Therefore, this node is marked as "retained" and included in the retention set. As for the "quarterly Helicobacter pylori follow-up" node in the original path, it is downgraded due to the new phase guidelines recommending its inclusion. rev The score drops to 0.2, S = (0.8 × 0.2 + 0.2 × 0.75) / (0.8 + 0.2) = 0.31. If the upgrade threshold is set to 0.4 and the retention threshold to 0.6, then the node's score of 0.31 is lower than the upgrade threshold, and it is judged as a failed node and removed. If another node "serum gastrin-17 monitoring" exists, its C... revIf the value is 0.55, and S=0.55, and it falls between 0.4 and 0.6, it is marked as "needs upgrade" and included in the existing pathway subset, awaiting upgrade in S5.4 to a composite node containing the C13 breath test and fecal calprotectin monitoring. The final generated existing pathway subset contains high-value core monitoring items and key indicators to be upgraded, ensuring that subsequent incremental reconstruction focuses on key aspects of disease progression.
[0186] S5.3: Based on the semantic anchor points of the existing path subset and the new disease stage, perform the matching operation of new sub-path nodes. Use the semantically driven sub-path instantiation engine to extract high-definition endoscopic or targeted biopsy sub-path templates that are adapted to the new disease stage from the standard diagnosis and treatment knowledge base to generate the new sub-path node sequence to be inserted.
[0187] Obtain the semantic anchor vectors of the existing path subsets and the corresponding new disease stages, and extract the semantic identifiers and modal association information from the anchors. Based on the semantic identifiers, retrieve a set of sub-path templates with the same pathological evolution logic from the standard diagnostic and treatment knowledge base, and construct a candidate sub-path index library. Calculate the matching degree between the candidate sub-path templates and the current patient's multidimensional semantic features using modal association information, and select target templates that are topologically compatible and clinically consistent. Perform parameter instantiation processing on the target templates, replacing the general time window in the template with a personalized interval calculated based on the half-life of the patient's physiological indicators, and generate a sequence of new sub-path nodes to be inserted.
[0188] By using a semantically driven sub-path instantiation engine, the screening results from the previous step are transformed into structured node data with specific execution parameters, enabling the follow-up plan to be accurately adapted to the new disease stage.
[0189] For example, for the new disease stage "Barrett's esophagus with low-grade intraepithelial neoplasia," the semantic anchor is identified as BE-LGD. The system retrieves two candidate templates from the knowledge base: "high-frequency endoscopic monitoring" and "radiofrequency ablation assessment." Calculating the cross-modal association strength reveals that "high-frequency endoscopic monitoring" matches the patient's current text feature "columnar metaplasia" with a match of 0.92, while "radiofrequency ablation assessment" only matches with 0.45. The system selects the "high-frequency endoscopic monitoring" template. Based on the patient's previous gastric emptying rate and tissue repair coefficient, the default 6-month interval of the template is adjusted to 5 months. A new sub-path node containing the instruction "high-definition white light endoscopy + Lugol's iodine staining after 5 months" is generated to ensure that the monitoring frequency matches the rate of disease progression.
[0190] S5.4: For the original review nodes marked as needing to be upgraded in the subset of existing paths, perform composite monitoring node reconstruction processing, use the multimodal detection item fusion algorithm to upgrade the single review node to a composite monitoring node, and recalculate the temporal constraint relationship and conditional branch logic between each node to generate an evolution path topology with a new temporal structure.
[0191] The system retrieves the set of existing review nodes marked "needs upgrade" from the existing path subset, extracting the original monitoring indicator identifiers, historical execution frequencies, and current clinical context parameters for each node. Based on the semantic anchor points corresponding to the new disease stage, a multimodal detection item fusion algorithm is invoked to retrieve a set of complementary monitoring indicators with high correlation to the current anchor point from the standard diagnostic and treatment knowledge base. The information gain value between the original single indicator and the newly introduced complementary indicator is calculated to construct a composite monitoring efficacy evaluation matrix.
[0192] Based on the mutual information between existing monitoring indicators and key pathological features of the new disease stage, as well as the synergistic redundancy between existing indicators and candidate complementary indicators, the comprehensive monitoring efficacy of the composite node is calculated using weighted coefficients λ1 and λ2 pre-set according to the consensus of gastroenterology experts. λ1 is used to adjust the relative importance of mutual information, and λ2 is used to adjust the relative importance of synergistic redundancy; the sum of the two is 1.
[0193] The combination of indicators that maximizes the overall monitoring effectiveness is selected as the upgraded composite monitoring content. The internal structure of the nodes is restructured, replacing single inspection items with composite inspection packages containing multi-dimensional indicators, and the execution time and resource consumption estimates in the node attributes are updated.
[0194] The temporal constraints between nodes in the evolutionary path are recalculated, and the time offsets of subsequent nodes are dynamically adjusted based on the physiological recovery cycle and index half-life of the composite monitoring nodes. A directed acyclic graph topology sorting algorithm is used to verify whether there are logical conflicts or circular dependencies in the newly generated path structure, ensuring the linear coherence of the follow-up process. An evolutionary path topology graph with a new temporal structure is generated, clarifying the predecessor-successor relationships and conditional triggering branches of each node.
[0195] By using a multimodal detection item fusion algorithm and time-series constraint recalculation, the single review node to be upgraded is transformed into a high-dimensional composite monitoring node, and a logically rigorous evolution path topology is generated, realizing a structured leap from single-point monitoring to multi-dimensional comprehensive evaluation of the follow-up plan.
[0196] For example, for a serum gastrin-17 monitoring node marked "needs upgrade," the new disease stage is atrophic gastritis with intestinal metaplasia. A knowledge base search yields complementary indicators: the PGI / PGII ratio and Helicobacter pylori antibody. Let λ1 = 0.6 and λ2 = 0.4. The calculated mutual information between the original indicators and pathological features is 0.85, and the synergistic redundancy between the original indicators and complementary indicators is 0.12. Therefore, the overall monitoring efficacy is 0.6 × 0.85 + 0.4 × 0.12 = 0.558. If only the original indicators are retained, the efficacy is only 0.51. Therefore, it is determined to upgrade to a composite node containing three indicators. Based on the gastrin half-life of 40 minutes and the long-term stability of the antibody, it is set that a 3-month interval is required after the composite node is implemented before the next round of endoscopic evaluation, instead of the original 1 month. The edge weights from this node to subsequent endoscopic nodes in the topology graph are updated to 90 days to eliminate the original temporal conflicts and generate a new evolutionary path topology graph.
[0197] S5.5: Based on the difference comparison results of the evolution path topology graph, the existing path subset and the new sub-path node sequence to be inserted, perform incremental reconstruction instruction encapsulation operation, and use the structured instruction generator to encode the node insertion action, node upgrade action and timing adjustment action into machine-executable incremental reconstruction instructions to generate incremental reconstruction instructions to guide subsequent modules to execute specific follow-up plan updates.
[0198] Step S6: Based on the incremental reconstruction command, perform semantic-driven node adjustment operations on the original follow-up pathway. Retain the basic monitoring items nodes that still have clinical value in the original follow-up pathway, insert new sub-pathway nodes corresponding to the new disease stage, and upgrade the original re-examination nodes to composite monitoring nodes to generate the evolved personalized follow-up plan. Specifically, this includes:
[0199] S6.1: Obtain the set of basic monitoring project nodes and incremental reconstruction instructions in the original follow-up path, and use the node persistence determination algorithm to filter the set of basic monitoring project nodes to generate a sequence of basic monitoring nodes to be retained, so as to ensure that the core monitoring content that is common across disease stages in the original path can be continued.
[0200] The system retrieves the set of basic monitoring project nodes from the original follow-up path and the incremental reconstruction instructions generated in step S5. These instructions include a list of node identifiers to be retained, a list of node identifiers to be removed, and semantic anchor indexes corresponding to the new disease stage. The system parses the topology migration trigger signal in the incremental reconstruction instructions to extract the identifier of the current patient's new disease stage and its corresponding clinical guideline version tag. It then traverses the set of basic monitoring project nodes, extracting the clinical attribute metadata for each node, including the examination item code, the last execution timestamp, historical abnormal status markers, and the recommendation level of the relevant treatment guideline.
[0201] The node survival determination algorithm is invoked, and a multidimensional survival scoring model is constructed based on the consensus of gastroenterology experts. According to the node survival score calculation formula defined in step S5.2, the clinical retention value of each node in the new disease stage is calculated. The calculated survival score is compared with a preset retention threshold. If the score is greater than or equal to the retention threshold, the node is determined to have cross-stage clinical value, marked as "retained," and added to the basic monitoring node sequence to be retained. If the score is less than the retention threshold, the node is determined to no longer have core monitoring significance in the current disease stage, and a removal operation is performed. A temporal consistency check is performed on the basic monitoring node sequence to be retained to ensure that the time constraints of the retained nodes are compatible with the physiological cycle of the new disease stage.
[0202] The basic monitoring project node set is screened by a node survival determination algorithm to generate a sequence of basic monitoring nodes to be retained. This ensures that the core monitoring content that is common across disease stages in the original path can be continued, and achieves a smooth transition of the follow-up plan and resource optimization.
[0203] For example, for patients with chronic atrophic gastritis and intestinal metaplasia, the original pathway included three basic nodes: "Annual Gastroscopy," "Quarterly Helicobacter pylori Follow-up," and "Semi-annual Serum Gastrin-17 Monitoring." The new disease stage was determined to be "Advanced Precancerous Lesion Stage." For the "Annual Gastroscopy" node, based on the persistence score, S=0.955, which is higher than the retention threshold of 0.6, and this node was marked as "Retained." For the "Quarterly Helicobacter pylori Follow-up" node, due to the new stage's guideline recommendation to downgrade, S=0.345, which is lower than the retention threshold of 0.6, and this node was removed. For the "Semi-annual Serum Gastrin-17 Monitoring" node, S=0.77, which is higher than 0.6, and it was marked as "Retained." The final generated sequence of basic monitoring nodes to be retained includes "Annual Gastroscopy" and "Semi-annual Serum Gastrin-17 Monitoring," ensuring the continuity of core monitoring content.
[0204] S6.2: Based on the basic monitoring node sequence to be retained and the incremental reconstruction instruction, the disease stage mapping rule base is called to perform the new sub-path matching process to generate a set of sub-path nodes to be inserted corresponding to the new disease stage, so as to realize the supplementation of targeted monitoring content for the disease evolution characteristics.
[0205] Obtain the semantic anchor point identifier of the new disease stage in the sequence of basic monitoring nodes to be retained and the incremental reconstruction instruction, and use it as the input condition for matching the new sub-path.
[0206] The disease course stage mapping rule base is invoked to retrieve the standard diagnosis and treatment knowledge graph subgraph associated with the semantic anchor point identifier of the new disease course stage, and extract the set of key pathological features and recommended intervention measures unique to this stage.
[0207] Based on the extracted set of key pathological features, a sub-path requirement vector is constructed, and its cosine similarity with the predefined sub-path template vector in the standard diagnostic and treatment knowledge base is calculated. A set of candidate sub-path templates with similarity higher than a preset threshold is then selected.
[0208] For the candidate sub-path template set, a clinical suitability check is performed. Based on the patient's individual contraindication labels, previous treatment history and current physiological state parameters, templates with clinical conflicts are eliminated, and a preliminary list of suitable sub-paths is generated.
[0209] A multi-objective optimization algorithm was used to sort the preliminary list of suitable sub-paths, and the comprehensive utility score of each sub-path was calculated by taking into account three dimensions: monitoring sensitivity, patient compliance cost, and medical resource consumption.
[0210] Select the top N sub-path templates with the highest comprehensive utility scores, instantiate them as specific sub-path nodes to be inserted, and assign them a unique node ID and initial time offset.
[0211] The generated set of child path nodes to be inserted is encapsulated into a structured data object, which includes node type, execution content, expected execution time and prerequisite dependencies.
[0212] Through the above-mentioned semantic matching, adaptability verification and multi-objective optimization processing, the abstract characteristics of the new disease stage are transformed into a set of specific executable sub-path nodes to be inserted, so as to realize the supplementation of targeted monitoring content for the disease evolution characteristics and ensure the clinical accuracy and feasibility of the new follow-up content.
[0213] For example, for patients transitioning from the stable phase of chronic gastritis to the atrophic gastritis with intestinal metaplasia phase, the new disease stage anchor is identified as AG-IM-02. The mapping rule base retrieved candidate sub-pathways including high-resolution endoscopic staining, serum pepsinogen testing, and Helicobacter pylori eradication assessment. Let α1=0.5, α2=0.3, and α3=0.2. The sensitivity coefficient for high-resolution endoscopic staining is 0.95, the normalized compliance cost is 0.6, and the resource consumption index is 0.8. The calculated overall utility score is U=(0.5×0.95+0.3×0.4-0.2×0.8) / 1.0=0.435. The sensitivity coefficient for serum pepsinogen detection was 0.85, the normalized value for compliance cost was 0.2, and the resource consumption index was 0.3, resulting in U = (0.5 × 0.85 + 0.3 × 0.8 - 0.2 × 0.3) / 1.0 = 0.605. The sensitivity coefficient for Helicobacter pylori eradication assessment was 0.70, the normalized value for compliance cost was 0.4, and the resource consumption index was 0.5, resulting in U = (0.5 × 0.70 + 0.3 × 0.6 - 0.2 × 0.5) / 1.0 = 0.43. Comparing the scores, serum pepsinogen detection showed the highest utility, followed by high-resolution endoscopic staining. The system selected these two items to generate a set of nodes for the inserted sub-path, labeled as node N. new01 and N new02 And set N new01 It must be performed within 7 days of the most recent blood test in the existing pathway. new02 Need to be in N new01 Schedule an appointment within 30 days of implementation to create a targeted supplementary monitoring plan.
[0214] S6.3: Obtain the original review node list in the original follow-up path and the composite monitoring upgrade strategy in the incremental reconstruction instruction. Use multimodal data fusion logic to restructure the original review node list to generate a composite monitoring node set containing multidimensional detection indicators, and complete the node function upgrade from single indicator review to comprehensive status assessment.
[0215] Retrieve the original follow-up path's list of nodes marked as "requires upgrade" after S5.2 filtering, and extract the original monitoring indicator identifiers, historical execution frequencies, and current clinical context parameters for each node. Analyze the composite monitoring upgrade strategy in the incremental reconstruction instructions to identify the target complementary indicator set that matches the semantic anchor points of the new disease stage.
[0216] A multimodal detection item fusion algorithm is invoked to retrieve candidate complementary indicators with high clinical synergistic effects with the original single indicators from the standard diagnostic knowledge base. The mutual information between the original monitoring indicators and key pathological features of the new disease stage is calculated to quantify the explanatory power of a single indicator in the evolution of the disease.
[0217] Calculate the collaborative redundancy between the original monitoring indicators and candidate complementary indicators, and evaluate the information overlap of multi-dimensional indicator combinations. Based on mutual information and collaborative redundancy, construct a composite monitoring effectiveness evaluation matrix, traverse all candidate complementary indicator combinations, and select the indicator combination that maximizes the comprehensive monitoring effectiveness as the upgraded composite monitoring content. Reconstruct the internal data structure of nodes, replace single inspection items with composite inspection packages containing multi-dimensional indicators, and update the execution time and resource consumption estimates in the node attributes.
[0218] By reorganizing the original list of review nodes through multimodal data fusion logic, a composite monitoring node set containing multidimensional detection indicators is generated, completing the node function upgrade from single indicator review to comprehensive status assessment, and significantly improving the sensitivity of the follow-up plan to capture subtle changes in the course of the disease.
[0219] For example, for a serum gastrin-17 monitoring node marked "needs upgrade," the new disease stage is atrophic gastritis with intestinal metaplasia. A knowledge base search yields complementary indicators: the PGI / PGII ratio and Helicobacter pylori antibody. The mutual information weight is set to 0.6, and the synergistic redundancy weight to 0.4. The calculated mutual information between the original indicator and the pathological feature is 0.85, and the synergistic redundancy between the original indicator and the complementary indicator is 0.12. Therefore, the overall monitoring efficacy is 0.6 × 0.85 + 0.4 × 0.12 = 0.558. If only the original indicator is retained, the efficacy is only 0.51. Therefore, it is determined to upgrade to a composite node containing three indicators. Based on the gastrin half-life of 40 minutes and the long-term stability of the antibody, it is set that a 3-month interval is required after the composite node is implemented before the next round of endoscopic evaluation, instead of the original 1 month. The edge weight from this node to subsequent endoscopic nodes in the topology is updated to 90 days to eliminate the original temporal conflict and generate a new evolutionary path topology.
[0220] S6.4: Based on the sequence of basic monitoring nodes to be retained, the set of sub-path nodes to be inserted, and the set of composite monitoring nodes, perform time-series constraint recalculation and condition branch logic reconstruction operations to generate an intermediate follow-up path model with dynamic topology structure and establish the time dependency relationship and triggering conditions between each monitoring node.
[0221] The sequence of basic monitoring nodes to be retained, the set of sub-path nodes to be inserted, and the set of composite monitoring nodes are obtained as input data for topology reconstruction. Temporal attribute parameters of each node are extracted, including the half-life of physiological indicators, examination recovery cycle, and the minimum interval recommended by clinical guidelines. A path temporal constraint model based on a directed acyclic graph is constructed, defining nodes as vertices of the graph and temporal dependencies as weighted directed edges. The temporal conflict probability between newly added sub-path nodes and existing nodes is calculated, and a dynamic time warping algorithm is used to align the optimal execution windows for different modalities of examination. For node pairs with overlapping times, the execution sequence is reallocated according to clinical priority weights to ensure that high-risk monitoring items are executed first.
[0222] Based on the time required for physiological recovery after examination, the metabolic half-life of key biochemical indicators, and the buffer time constant, the minimum safe time interval between nodes is calculated. All node pairs are traversed; if the difference between the execution time of the current node and the planned time of the subsequent node is less than the minimum safe time interval, a time-series shift mechanism is triggered, adjusting the subsequent node's time to the current node's time plus the minimum safe time interval. For conditional branching logic, the state transition conditions in the semantic anchor points of the disease progression are parsed and mapped to Boolean judgment gateways in the path graph. Trigger thresholds and confidence thresholds are configured for each branch node; when the patient's disease stage coordinates fall into the attraction domain of a specific anchor point and the confidence exceeds the threshold, the corresponding branch path is activated. The reconstructed path topology is verified using a depth-first search algorithm to detect the existence of circular dependencies or isolated nodes. If a logical loop is detected, low-priority feedback edges are cut off according to the clinical causal chain to ensure the unidirectional evolution characteristics of the path. The adjusted time-series parameters and branching logic are integrated to generate an intermediate follow-up path model containing complete spatiotemporal constraints.
[0223] Through the aforementioned recalculation of temporal constraints and reconstruction of conditional branch logic, discrete monitoring nodes are integrated into a dynamic topology with tight logical connections, realizing the transformation of the follow-up plan from a static list to an intelligent evolutionary network, ensuring the clinical rationality and logical coherence of subsequent follow-up execution.
[0224] For example, for patients with atrophic gastritis and intestinal metaplasia, the original pathway retains the node "serum gastrin-17 monitoring" and adds a new node "high-definition endoscopy + targeted biopsy". The physiological recovery time after endoscopy is set to 3 days, the gastrin metabolic half-life to be 40 minutes (equivalent to 0.03 days), and the buffer time constant to 2 days. The calculated minimum safe time interval is max(3,0.03)+2=5 days. If the original plan was for gastrin monitoring on day 10 and endoscopy on day 12, since 12-10=2<5, a time shift is triggered, and the endoscopy is adjusted to day 15. Simultaneously, a branch gateway is set: if gastrin-17>500pg / mL and PGI / PGII<3.0, the "emergency pathology consultation" branch is activated. After verification, no circular dependency was found, and an intermediate model was generated, significantly optimizing the scientific validity of the examination timing.
[0225] S6.5: Perform integrity verification and clinical compliance review on the intermediate follow-up path model, and use the path evolution verification engine to output the final evolved personalized follow-up plan to ensure that the generated follow-up plan meets the needs of full-cycle management of chronic diseases in gastroenterology in terms of logical coherence and medical standardization.
[0226] Obtain the intermediate follow-up path model and extract the topology data, which includes the basic monitoring nodes to be retained, the newly added sub-path nodes to be inserted, and the composite monitoring nodes.
[0227] The extracted topology is subjected to a directed acyclic graph (DAG) loop detection algorithm, which traverses all the dependency edges between nodes to identify whether there are closed-loop logical conflicts, thus ensuring the unidirectional temporality of the follow-up process.
[0228] The clinical guideline compliance verification engine is invoked to semantically match and compare the examination types and frequency intervals of each monitoring node with the recommended standards in the latest gastroenterology diagnosis and treatment guidelines.
[0229] Calculate the compliance deviation value of the nodes, mark the nodes that exceed the allowable error range of the guidelines as violations, and generate correction suggestion instructions to adjust the node attributes or timing constraints.
[0230] A feasibility assessment of the resources was conducted, and the feasibility of adding new composite monitoring nodes within a preset time window was verified by combining the hospital's scheduling system with patients' geographical location information, and unreachable nodes were eliminated.
[0231] By integrating loop detection results, compliance verification reports, and resource feasibility scores, a multi-objective optimization algorithm is used to fine-tune the path topology, eliminating logical breakpoints and resource conflicts.
[0232] Through integrity verification and compliance review, the intermediate follow-up path model is transformed into a logically rigorous, medically compliant, and executable final personalized follow-up plan, thereby achieving precise and compliant follow-up management.
[0233] For example, for a patient who transitioned from the stable phase of chronic gastritis to the advanced stage of precancerous lesions, the intermediate path generated by the system included "quarterly high-definition endoscopy," "monthly serum gastrin-17 monitoring," and "annual Helicobacter pylori follow-up." DAG testing confirmed no loops. Compliance verification revealed that the "annual Helicobacter pylori follow-up" did not comply with the "quarterly C13 breath test" recommended by the new phase guidelines and was marked as a violation. Resource assessment showed that the endoscopy appointments at the hospital in the patient's region were full for the following month. The system automatically postponed the first high-definition endoscopy to the following month when there was an opening, and adjusted the time offset of subsequent nodes accordingly. After multi-objective optimization and fine-tuning, the final follow-up plan was output: the first month was for C13 breath test and fecal calprotectin testing, the second month was for high-definition endoscopy and targeted biopsy, and serum biomarkers were checked every 3 months thereafter. This plan fully complies with clinical guidelines and is practically feasible, significantly improving follow-up compliance and management efficiency.
[0234] Step S7: Record the specific semantic evidence chain that triggers the disease progression transition judgment event and generate a semantic migration log. The semantic evidence chain includes the combination of test indicators that first meets the anchor point matching conditions and the successfully mapped endoscopic description text fragments, in order to achieve traceability and audit compliance of the follow-up plan evolution process. Specifically, it includes:
[0235] S7.1: Obtain the original semantic matching record set when the disease stage transition judgment event is triggered, and perform time-series reconstruction processing on the original semantic matching record set based on the timestamp sorting algorithm to generate an ordered semantic evidence sequence arranged in chronological order of occurrence. The ordered semantic evidence sequence contains all candidate test index combination fragments and candidate endoscopic description text fragments that participated in this transition judgment.
[0236] The original semantic matching record set triggered by the disease progression transition event is obtained. This set originates from the intermediate data stream generated during the real-time projection matching of the set of semantic units to be mapped and the disease progression semantic anchor point library in step S3. Specifically, it includes discretely distributed endoscopic text fragment mapping records, markers of co-changes in biochemical test indicators, and abnormal points in symptom scale scores. Through time-based alignment, sliding window-based deduplication filtering, and timestamp-based sorting, the original semantic matching records are transformed into an ordered semantic evidence sequence. For duplicate records with semantic similarity exceeding a threshold within the time window, only the record with the highest confidence is retained. Each element in this sequence carries complete source metadata, ensuring the traceability of subsequent causal chain deductions.
[0237] Through the multi-level data processing and transformation of the above-mentioned time sequence reconstruction, priority arbitration, deduplication filtering and structured encapsulation, the discrete, disordered and potentially noisy original matching records in the previous step are transformed into an ordered semantic evidence sequence with strict causal time sequence relationship, high confidence and unified structure. This enables accurate tracing of the trigger basis for the evolution of the follow-up plan and ensures logical coherence, providing a high-quality structured data foundation for extracting the primacy test index combination in step S7.2.
[0238] For example, the system captures an event in which a patient with chronic atrophic gastritis triggers a transition from the "stable phase" to the "precancerous lesion progression phase". The original semantic matching record set contains 5 data points: elevated serum gastrin-17 marker at time T1 (2023-10-01 09:00:00.123), with a confidence level of 0.85; endoscopic description "pale and thin mucosa" at time T2 (2023-10-01 09:00:00.123), with a confidence level of 0.92; a surge in upper abdominal pain score at time T3 (2023-10-01 08:55:00.000), with a confidence level of 0.78; elevated serum gastrin-17 marker at time T4 (2023-10-01 09:00:00.125) (repeated collection), with a confidence level of 0.80; and a surge in upper abdominal pain score at time T5 (2023-10-01 08:55:00.005), with a confidence level of 0.75.
[0239] After time-based alignment, T3 and T5 are the earliest, while T1, T2, and T4 are almost simultaneous. First, deduplication is performed: comparing T1 and T4, the time difference of 2ms is less than the window width of 100ms, and the semantic similarity is 0.98, exceeding the threshold of 0.95, thus it is considered a duplicate, and T1 (0.85 > 0.80) with higher confidence is retained. Similarly, comparing T3 and T5, the time difference of 5ms is less than 100ms, and the similarity is 0.99, exceeding 0.95, so T3 (0.78 > 0.75) with higher confidence is retained. The remaining records are T3, T1, and T2. Next, sorting is performed: T3 (08:55:00.000) is the earliest and ranked first; T1 and T2 have the same timestamp (09:00:00.123), and according to the modality priority rule, the endoscopy record (T2) is superior to the test marker (T1), so T2 is ranked second, and T1 is ranked third. The final generated ordered semantic evidence sequence is: [T3: surge in upper abdominal pain score, T2: pale and thin mucosa, T1: elevated gastrin-17]. This sequence clearly demonstrates the disease progression logic of symptoms preceding morphological changes, followed by abnormal biochemical indicators, providing precise temporal support for subsequent determination of the primary cause.
[0240] S7.2: Extract the first test index combination fragment in the ordered semantic evidence sequence that satisfies the anchor attraction domain exceeding the preset threshold as the primacy test index combination, and use the semantic vector similarity calculation engine to perform confidence scoring and screening on the candidate endoscopic description text fragments in the ordered semantic evidence sequence to generate the target endoscopic description text fragment with the highest confidence weight.
[0241] This sub-step aims to accurately extract the core evidence that triggers the disease progression from an ordered sequence of semantic evidence, including combinations of primacy test indicators and high-confidence endoscopic text fragments, to provide solid evidence for subsequent audit logs.
[0242] Obtain the ordered semantic evidence sequence generated by S7.1, traverse the numerical test records in the sequence, and extract the co-change vector of the test indicators and its timestamp for each record. Use Mahalanobis distance to measure the deviation of each test indicator combination from the boundary of the current anchor point's attraction domain. Select the first test indicator combination whose Mahalanobis distance exceeds a preset threshold and meets the earliest temporal condition as the primary cause test indicator combination, and mark its trigger time.
[0243] Non-numerical endoscopic descriptive text fragments in the parallel processing sequence are mapped into high-dimensional semantic vectors using a pre-trained medical domain BERT model. The cosine similarity between the candidate text vector and the semantic prototype of the target disease stage anchor is calculated as a quantitative indicator of the confidence weight. The confidence weights of the candidate text fragments are sorted in descending order, and the text fragment with the highest ranking and a weight greater than 0.85 is selected as the target endoscopic descriptive text fragment.
[0244] Through the aforementioned dual screening mechanism, the discrete evidence stream is transformed into a combination of primacy test indicators with clear causal orientation and high-confidence target endoscopy description text fragments, thereby achieving precise locking and denoising of the transition trigger basis.
[0245] For example, the system processes transition evidence from a patient with chronic atrophic gastritis. The ordered sequence contains three sets of test data and two endoscopic text segments. In the test data, the Mahalanobis distance between gastrin-17 and the PGI / PGII ratio at time T1 is 3.2, exceeding the threshold of 2.5; the Mahalanobis distance for the same indicator at time T2 is 2.1, which is within the threshold. Therefore, the indicator combination at time T1 is selected as the primacy test indicator combination. In the endoscopic text, the similarity between the vector "mucosal vascular permeability" and the anchor prototype cosine similarity of "precancerous lesion" is 0.92, and the similarity of "mild congestion" is 0.65. The system selects "mucosal vascular permeability" with a similarity of 0.92 as the target endoscopic description text segment. Finally, a structured primacy evidence pair is output to ensure the accuracy and interpretability of subsequent log recordings.
[0246] S7.3: Construct a structured semantic evidence tuple based on the combination of primacy test indicators and the text fragment describing the target endoscope. Use causal chain derivation logic to map the numerical test data and non-numerical text data in the structured semantic evidence tuple to a preset audit compliance field template to generate a standardized semantic evidence chain object containing complete triggering evidence.
[0247] The primacy test indicator combination data and the target endoscopy description text fragment with the highest confidence weight, output from step S7.2, are obtained as the original input source for constructing the semantic evidence tuple. Data type standardization is performed on the primacy test indicator combination, encapsulating discrete biochemical indicator values, unit identifiers, and reference range boundaries into structured numerical objects, ensuring numerical precision is retained to four decimal places to meet medical audit requirements. Natural language semantic anchoring is performed on the target endoscopy description text fragment, extracting key pathological feature words and their character offset positions in the original report to generate a text evidence vector with spatial positioning information.
[0248] A multidimensional causal relationship matrix is constructed, and the time lag coefficient between the occurrence of abnormal test indicators and the acquisition of endoscopic images is calculated using timestamp differences. Combined with cross-modal association strength weights defined in the disease course semantic anchor library, the causal tightness between numerical changes and morphological changes is quantified. A pre-defined audit compliance field mapping engine is applied to map structured numerical objects, textual evidence vectors, and causal tightness coefficients to the "objective test evidence," "subjective imaging evidence," and "causal relationship strength" fields in the audit template, respectively, forming preliminary structured semantic evidence tuples. A completeness verification mechanism is introduced to check whether key traceability information such as device IDs and operator signature hash values are missing from the evidence tuples. If missing information is found, the original medical record database is traversed to complete the information, ensuring the legal validity of the evidence chain. Finally, a standardized semantic evidence chain object containing complete triggering evidence and possessing non-repudiation is generated.
[0249] Through the above-mentioned processing methods of multimodal data standardization, causal correlation quantification, and compliance field mapping, the discrete evidence selected in the previous step is transformed into a standardized semantic evidence chain object with a rigorous structure and logical self-consistency, thereby achieving full traceability and audit compliance of the follow-up plan evolution decision-making process.
[0250] For example, the system processes a case that transitions from "stable chronic gastritis" to "progressive precancerous lesion". The primary cause test indicator is serum gastrin-17, with a value of 25.6 pmol / L (reference value <15), acquired at time T1; the target endoscopic text is "roughness of the gastric antrum mucosa with granular changes", with a confidence level of 0.94, acquired at time T2. The system encapsulates 25.6 pmol / L into a structured object {"value":25.6,"unit":"pmol / L","deviation":"+70.6%"}. The word offsets [12,14] and [16,19] of "roughness" and "granular" in the text are extracted. The time lag coefficient Δt = T2 - T1 = 2 days is calculated. The test-image association weight for this disease stage is found to be 0.85, and the causal tightness score is calculated as Score = 0.85 * exp(-0.1 * 2) = 0.697. Mapping to the audit template: The objective evidence field is filled with a gastrin-17 structured object, the subjective imaging evidence field is filled with a text vector with an offset, and the causal relationship strength field is filled with 0.697. After verifying and completing the endoscopic device serial number, the final evidence chain object is generated to ensure that the transition judgment basis can be accurately reproduced during subsequent audits.
[0251] S7.4: Use the log serialization protocol to encapsulate standardized semantic evidence chain objects into immutable audit log entries to generate semantic migration log files with legal validity and clinical interpretability.
[0252] Obtain the standardized semantic evidence chain object generated in step S7.3. This object contains the primacy test indicator combination, the target endoscopy description text fragment, and causal mapping metadata, serving as the input source for log serialization. Calculate the digest of this JSON string using the SHA-256 hash algorithm to generate a fixed-length hexadecimal hash value, establishing a unique digital fingerprint of the data content to prevent any bit-level tampering during subsequent storage.
[0253] Furthermore, based on the national cryptographic standard SM2 asymmetric encryption algorithm or RSA-2048, the system private key is used to perform digital signature operations on the generated hash value to construct a legally valid identity authentication label, ensuring the credibility and non-repudiation of the log source. A Merkle Tree data structure is introduced, using the currently generated signed log entry as a leaf node, concatenating it with the log root hash value from the previous moment, and performing another SHA-256 hash operation to form a chain dependency relationship, achieving anti-rollback protection for historical records. An audit log schema template conforming to the HL7FHIR standard is defined, encapsulating the patient ID, transition event type, timestamp, digital signature, Merkle root hash, and original evidence payload into immutable data blocks, and performing binary serialization encoding.
[0254] Through the aforementioned processing methods of hash digest, digital signature, Merkel chain association, and standardized encapsulation, the structured semantic evidence from the previous step is transformed into an immutable audit log file with integrity verification capabilities and legal compliance, thereby achieving traceability and judicial evidentiary effect throughout the entire evolution of the follow-up plan.
[0255] For example, the system processes a case log generation process that transitions from "stable phase of chronic gastritis" to "progressive phase of precancerous lesions". The standardized semantic evidence chain object includes: patient ID P20231001, transition time 2023-10-01T09:00:00Z, primacy test index gastrin-17 (25.6 pmol / L), target endoscopic text "roughness of gastric antrum mucosa with granular changes", and causal tightness of 0.697.
[0256] First, the object is serialized into a JSON string. The hash value of this JSON string is calculated using the SHA-256 algorithm, resulting in a hexadecimal hash value such as "a1b2...c3d4". Next, the system private key is used to perform an SM2 signature operation on this hash value, generating a digital signature. Then, the Merkle root hash of the previous log block is obtained (or an all-zero hash if it's the first log entry). The current hash is concatenated with the previous Merkle root hash, and another SHA-256 hash operation is performed to obtain a new Merkle root hash. Finally, a JSON structure conforming to the HL7FHIRAuditEvent resource is constructed, containing the patient ID, transition event type, timestamp, digital signature, Merkle root hash, and original evidence payload. This final JSON structure is then binary serialized to generate a semantic migration log file. This file is tamper-resistant; any minor modification to the original evidence or timestamp will result in hash value mismatches and Merkle chain breaks, which can be immediately identified during auditing, ensuring the judicial-grade credibility of follow-up evolution decisions.
[0257] S7.5: Read the generated semantic migration log file and write it to the audit trail partition of the patient lifecycle management database. Based on the index building algorithm, establish a fast retrieval index for the semantic migration log file based on the disease stage transition type to realize real-time query and compliance backtracking verification of the follow-up plan evolution history.
[0258] The system reads the standardized semantic migration log file generated by S7.4, parses its JSON structure to extract patient ID, transition timestamps, and evidence chain metadata. It then establishes a persistent session with the patient lifecycle management database audit trail partition using the database connection pool. A transaction initiation command is executed to ensure the atomicity and isolation of subsequent write operations. The parsed log objects are mapped to field values in a relational database table structure, including primary key indexes, foreign key relationships, and BLOB-type evidence details.
[0259] Use the batch insert interface to write serialized log entries to the data table in the audit trail partition. Obtain the row count and status code returned by the write operation to verify the integrity of the data persistence. If the write is successful, commit the database transaction and release connection resources; if it fails, perform a rollback operation and log the exception stack trace.
[0260] A composite index structure is constructed based on the disease progression stage type field. The source anchor ID and target anchor ID are extracted from the logs as index keys. A B+ tree data structure is used to organize the index nodes, optimizing the efficiency of range queries and exact matches. The hash distribution of the index key values is calculated to balance the load on the tree nodes. The constructed index metadata is registered with the database directory service.
[0261] Update the statistical histogram and optimize the query optimizer's execution plan selection. Through the above data persistence and index building processes, the transient semantic migration log is transformed into audit records that can be stored long-term and retrieved efficiently, enabling full traceability of the evolution history and rapid compliance verification.
[0262] For example, the system reads a log file containing patient ID P20231001 and transition type "chronic gastritis - precancerous lesion". After parsing, key fields are extracted, and a database connection is established. An SQL insert statement is executed to write the log data to the audit log table. The transaction is committed after successful writing. A B+ tree index is created for the transition type field. When executing a query by transition type, the database engine uses the index to directly locate the data block, avoiding a full table scan. With millions of data entries, query response time is reduced from seconds to milliseconds, significantly improving audit backtracking efficiency.
[0263] For those skilled in the art, various other corresponding changes and modifications can be made based on the technical solutions and concepts described above, and all such changes and modifications should fall within the protection scope of the claims of this invention.
[0264] Unless otherwise defined, the technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this application pertains. The terms “first,” “second,” “third,” and similar terms used in this patent application specification and claims do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an” or “a” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “comprising” or “including” and similar terms mean that the element or object preceding “comprising” or “including” encompasses the element or object listed following “comprising” or “including” and its equivalents, and do not exclude other elements or objects. The “multiple” mentioned in the embodiments of this application refers to two or more. A and / or B indicate three possibilities: A; B; and A and B.
[0265] The above description is merely an exemplary embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An intelligent follow-up management method based on structured medical record data from the gastroenterology department, characterized in that, include: Obtain the patient's structured medical record data, perform multi-granular semantic parsing processing on the structured medical record data, and generate a set of semantic units to be mapped; Based on the disease course-related features extracted from the medical knowledge base, a disease course semantic anchor point library is constructed. Each anchor point in the disease course semantic anchor point library is encoded as a structured semantic vector containing semantic identifier, confidence weight, time stability coefficient and modal association information. The set of semantic units to be mapped is matched and mapped with the disease course semantic anchor point library to generate the patient's disease course stage coordinates in the semantic space; Based on the time stability coefficient of each anchor point in the disease course semantic anchor point library, an anchor point attraction domain is constructed, and the deviation trajectory of the disease course stage coordinates relative to the anchor point attraction domain is calculated to generate a disease course stage transition judgment signal. In response to the disease stage transition judgment signal, if the transition conditions are met, the path migration mechanism is activated to generate an incremental reconstruction instruction for the follow-up path. Based on the incremental reconstruction instructions, the execution nodes of the original follow-up path are adjusted to generate an evolved personalized follow-up plan; Record the semantic evidence chain that triggers the disease stage transition judgment signal, and generate a semantic transition log.
2. The intelligent follow-up management method based on structured medical record data in gastroenterology as described in claim 1, characterized in that, The process-related features extracted from the medical knowledge base are used to construct a process semantic anchor point library, including: Based on a medical knowledge base, a multi-source heterogeneous knowledge extraction operation is performed to extract three types of original semantic feature sets: histological evolution keyword combinations, symptom and sign coupling patterns, and synergistic changes in test indicators. The original semantic feature set is processed by semantic label allocation and confidence weight calculation to generate weighted semantic feature units with discriminative labels, wherein the confidence weight is quantified based on the evidence level and expert consensus. Based on the weighted semantic feature unit, the time stability coefficient is calculated and the Gaussian attractive potential field radius parameter is constructed to generate a dynamic pathological semantic anchor point primitive with time-varying characteristics. The dynamic disease course semantic anchor primitives are processed using a cross-modal data association analysis algorithm to construct modal association information to characterize the coupling tightness between text, numerical and image features, so as to generate complete multidimensional associated disease course semantic anchor primitives. The multidimensional associated disease course semantic anchor primitives are encapsulated into structured semantic vectors containing semantic identifiers, confidence weights, time stability coefficients, and modal association information, so as to construct a disease course semantic anchor library that can be used for real-time projection matching.
3. The intelligent follow-up management method based on structured medical record data in gastroenterology as described in claim 1, characterized in that, An anchor attraction domain is constructed based on the time stability coefficient of each anchor point in the disease course semantic anchor point library, and the deviation trajectory of the disease course stage coordinates relative to the anchor attraction domain is calculated to generate a disease course stage transition determination signal, including: Based on the time stability coefficient of each disease course semantic anchor point in the disease course semantic anchor point library, the potential field parameterization transformation of the time stability coefficient is performed by using the Gaussian kernel function mapping mechanism to generate a set of Gaussian attractive potential field distribution parameters corresponding to each disease course semantic anchor point. Based on the Gaussian attraction potential field distribution parameter set, a potential energy threshold boundary is set, and a spatial neighborhood delimitation operation is performed on the Gaussian attraction potential field distribution parameter set to construct a multi-dimensional anchor point attraction domain topology structure containing the current disease course semantic anchor point and its adjacent disease course semantic anchor points. Obtain the disease stage coordinates of the dynamic distribution region of the patient with confidence ellipsoid in the anchor space, extract the centroid position of the disease stage coordinates as the tracking reference point, and calculate the Euclidean distance offset sequence of the tracking reference point relative to the center of the anchor attraction domain corresponding to the current disease semantic anchor in the multidimensional anchor attraction domain topology within a continuous time window. Based on the spatial overlap of the Euclidean distance offset sequence and the anchor attraction domains corresponding to adjacent pathological semantic anchors, a cross-domain crossing detection algorithm is performed on the movement path of the tracking reference point to generate a deviation trajectory feature vector representing the migration of the centroid position from the original anchor attraction domain to the adjacent anchor attraction domain. Based on the status flags recorded in the deviation trajectory feature vector where the updated position falls into the attraction domain of the adjacent anchor point and the magnitude value of the deviation from the attraction domain of the original anchor point, a multi-condition logical AND operation is performed to generate a disease stage transition judgment signal indicating a substantial change in the disease stage.
4. The intelligent follow-up management method based on structured medical record data in gastroenterology as described in claim 1, characterized in that, The multi-granularity semantic parsing process includes: After cleaning the acquired multimodal raw clinical data, structured text features are generated through natural language processing and structured numerical features are generated through time-series trend analysis. The two are then aggregated across modalities to generate the set of semantic units to be mapped.
5. The intelligent follow-up management method based on structured medical record data in gastroenterology as described in claim 1, characterized in that, The matching mapping includes: The structured text features and the structured numerical trend features are matched with the disease course semantic anchor point library to obtain the text matching degree and numerical trigger flag. After weighted fusion, a multi-dimensional semantic fusion matching score vector is obtained.
6. The intelligent follow-up management method based on structured medical record data in gastroenterology, as described in claim 5, is characterized in that... The generated disease stage coordinates include: The spatial centroid is determined based on the multidimensional semantic fusion matching score vector, and confidence ellipsoid parameters are constructed using the time stability coefficients of each anchor point in the disease course semantic anchor point library. The centroid and the confidence ellipsoid parameters are then encapsulated into the disease course stage coordinates with confidence ellipsoids.
7. The intelligent follow-up management method based on structured medical record data in gastroenterology as described in claim 1, characterized in that, The startup path migration mechanism includes: Continuous trajectory data of the disease stage coordinates are acquired. When it is detected that the trajectory continuously falls into the attraction domain of adjacent anchor points and deviates from the original anchor point attraction domain by more than a preset threshold, a topology migration trigger signal is generated.
8. The intelligent follow-up management method based on structured medical record data in gastroenterology according to claim 7, characterized in that, The incremental reconstruction instructions include: Based on the topology migration trigger signal, the nodes in the original follow-up path are analyzed for their sustainability to retain common nodes, and new sub-path nodes are extracted according to the new disease stage. The node insertion, upgrade and timing adjustment actions are encoded into the incremental reconstruction instructions.
9. The intelligent follow-up management method based on structured medical record data in gastroenterology as described in claim 1, characterized in that, The execution node adjustment generates the evolved personalized follow-up plan, which includes: According to the incremental reconstruction instruction, the basic monitoring nodes are retained, new sub-path nodes are inserted, the original review nodes are upgraded to composite monitoring nodes, and the timing constraints and branch logic are recalculated. After verification, the evolved personalized follow-up plan is generated.
10. The intelligent follow-up management method based on structured medical record data in gastroenterology according to claim 1, characterized in that, The generation of semantic migration logs includes: The original matching records that triggered the disease stage transition judgment signal were sorted by timestamp, the primacy test indicators and the highest confidence endoscopic description were extracted, structured evidence tuples were constructed and mapped to audit fields, encapsulated as tamper-proof log entries and a retrieval index was established.
