Acute pancreatitis complication assessment method based on artificial intelligence

By performing time-series analysis of the underlying disease history of patients with acute pancreatitis and fusing features of real-time clinical indicators, and using deep neural networks to generate complication risk probabilities, the problem of insufficient utilization of the impact of underlying diseases in existing methods is solved, and more accurate risk assessment is achieved.

CN120977462AActive Publication Date: 2025-11-18FUJIAN PROVINCIAL HOSPITAL

Patent Information

Application Number
CN202511483309.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-17
Publication Date
2025-11-18
Estimated Expiration
2045-10-17

AI Technical Summary

Technical Problem

Existing AI-based risk assessment methods for acute pancreatitis do not adequately incorporate historical records of underlying diseases, especially dynamically changing physiological parameters and medical events, resulting in an inability to fully reflect the impact of underlying diseases on the risk of complications.

Method used

By acquiring clinical datasets from patients with acute pancreatitis, we performed time-series analysis of their underlying disease history, extracted long-term impact features, standardized them using real-time clinical indicators, and fused the features. We then used deep neural networks for nonlinear transformation to generate complication risk probabilities.

Benefits of technology

It enables a comprehensive assessment of the risk of complications in patients with acute pancreatitis, generates more accurate risk assessment reports, and provides more reliable clinical decision support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120977462A_ABST
    Figure CN120977462A_ABST
Patent Text Reader

Abstract

The invention discloses an acute pancreatitis complication assessment method based on artificial intelligence, and belongs to the technical field of medical information, and the method specifically comprises the steps: firstly, obtaining a clinical data set containing real-time clinical indexes and basic disease historical records; performing time sequence analysis on the historical records of the basic diseases, extracting long-term influence characteristics of the historical records of the basic diseases and generating basic disease influence factors; carrying out standardization processing on the real-time clinical indexes and the basic disease influence factors, and generating a comprehensive feature vector after calculating association weights among features; inputting the vector into a trained artificial intelligence evaluation model, and outputting a complication risk probability through layer-by-layer nonlinear transformation; and finally, mapping the risk probability value into a risk level, and integrating patient information to generate a structured risk assessment report. And an acute pancreatitis complication evaluation scheme integrating the acute stage index and the chronic basic disease influence is established.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of medical information technology, and in particular to an acute pancreatitis complication assessment method based on artificial intelligence. BACKGROUND

[0002] Acute pancreatitis is a common digestive system emergency, its disease course develops rapidly, and part of the patients may progress to severe and be accompanied by multiple local or systemic complications, which poses a serious threat to the life and health of the patients. In clinical practice, timely and accurate assessment of the risk of complications in patients is of great significance for formulating targeted treatment plans and reasonably allocating medical resources. With the improvement of the level of medical informatization, using clinical data to build risk assessment models to assist doctors in clinical decision-making has become an important research direction of medical artificial intelligence technology.

[0003] At present, the existing acute pancreatitis risk assessment methods based on artificial intelligence usually focus on real-time clinical indicators of patients at admission, such as serum amylase, lipase levels, imaging examination results, etc. These methods learn the mapping relationship between real-time indicators and complication outcomes through machine learning or deep learning models. In addition, some improved models attempt to introduce patient's basic disease information as one of the input features of the model, treating the basic disease as a static, categorical variable in order to improve the prediction performance of the model.

[0004] However, the existing risk assessment models do not sufficiently incorporate the basic disease variable. Usually, the basic disease is treated as a simple binary classification variable, or only a few static baseline indicators are introduced. This processing method fails to depict the basic disease as a chronic, dynamic development of pathological state, and its long-term, cumulative impact on the physiological environment of organs is ignored. Specifically, the existing methods generally lack deep time series analysis of the history of the basic disease, such as the long-term fluctuation trend of blood glucose level or the stability of blood pressure control, and these dynamic information is exactly the key factor affecting the pancreatic microenvironment and complication risk. The model cannot fully reflect the real risk state under the joint action of the physiological basis laid by the basic disease and the acute attack. This shallow use of the basic disease variable constitutes a major limitation of the existing technology. SUMMARY

[0005] The purpose of the present application is to provide an acute pancreatitis complication assessment method based on artificial intelligence, which solves the following technical problems: The basic disease increases the risk of complications, but the existing methods do not sufficiently incorporate these variables.

[0006] The purpose of the present application can be achieved by the following technical solutions: An acute pancreatitis complication evaluation method based on artificial intelligence, comprising the following steps: S1, acquiring a clinical data set of an acute pancreatitis patient, the clinical data set comprising real-time clinical indicators at the onset of acute pancreatitis and a patient's basic disease history record; S2, performing time series analysis on the basic disease history record, extracting long-term influence characteristics of the basic disease on the physiological state of the pancreas, and generating a basic disease influence factor; S3, performing standardization processing on the real-time clinical indicators and the basic disease influence factor and calculating the correlation weight between the characteristics, and generating a fixed-dimension comprehensive feature vector according to the correlation weight; S4, inputting the comprehensive feature vector into a trained artificial intelligence evaluation model, performing layer-by-layer nonlinear transformation and information extraction on the input characteristics, and outputting a complication risk probability; S5, mapping the risk probability value to a predefined risk level, integrating patient identification information and key clinical data to form a structured document, and generating a risk evaluation report.

[0007] As a further scheme of the present application: in the S1, the specific process of acquiring the clinical data set of the acute pancreatitis patient is: extracting the complete medical record of the patient from the hospital information system through a medical data interface, the medical record including admission diagnosis information, laboratory examination results and imaging reports, screening the clinical indicators related to the diagnosis of acute pancreatitis from the medical record, the clinical indicators including serum amylase level and abdominal imaging features; Meanwhile, the basic disease history record recorded in the patient's past medical history is extracted, and the basic disease history record contains disease type, diagnosis basis and course record.

[0008] As a further scheme of the present application: in the S2, the specific process of the time series analysis is: read the time series data in the basic disease history record, the time series data containing regularly recorded physiological parameter measurement values and medical event markers, pre-process the time series data, the pre-processing including data cleaning and missing value filling, divide the pre-processed data into continuous time windows, calculate the statistical characteristics of the physiological parameters and the medical event density in each time window, construct a feature sequence based on the time window data, simulate the disease progression trajectory by using a dynamic system modeling method, extract features from the simulated trajectory data, extract the main change mode as the long-term influence characteristics, input the long-term influence characteristics into a neural network structure, and output the basic disease influence factor.

[0009] As a further scheme of the present application: the specific process of the dynamic system modeling method is: The system state equation is established to describe the change rule of the characteristic sequence over time, the system state equation is constructed based on correlation analysis of characteristic changes in adjacent time windows, parameters of the equation are determined through fitting of historical data, an optimization algorithm is used in the fitting process to find the best parameter combination, a medical event density is introduced as an adjustment factor in the parameter optimization process, the adjustment factor affects the step and direction of parameter updating, and a numerical calculation method is used to solve the system state equation to calculate the state estimation value of each time window, and the state estimation value forms a continuous disease progression trajectory.

[0010] As a further scheme of the present application: in the S3, the specific process of the feature fusion is: The real-time clinical indicators and the basic disease influencing factors are respectively subjected to data standardization processing to eliminate dimensional differences, a double-path encoding structure is adopted, the first path is used for feature extraction of the clinical indicators, and the second path is used for feature transformation of the influencing factors; A feature interaction layer based on an attention allocation mechanism is designed to calculate the mutual correlation strength between the two types of features, dynamic weight coefficients are generated according to the correlation strength, the two types of features are combined by weighting, and the weighted features are input into a feature compression layer to generate a fixed-dimension comprehensive feature vector through dimension reduction operation.

[0011] As a further scheme of the present application: the specific process of the attention allocation mechanism is: A feature interaction matrix is constructed, the rows of the matrix correspond to the clinical indicator features, and the columns correspond to the basic disease influencing factor features, the correlation strength value of each element in the feature interaction matrix is calculated, the correlation strength value is obtained through inner product operation of the feature vectors, and the correlation strength value is subjected to normalization processing to generate an attention weight distribution; The original features are reweighted according to the attention weight distribution to highlight the key feature dimensions, the weighted features pass through a nonlinear transformation layer to enhance the feature expression capability, and the calculation process of the attention weight adopts an iterative optimization mode, and the number of iterations is dynamically adjusted according to the feature dimension.

[0012] As a further scheme of the present application: in the S4, the training process of the artificial intelligence evaluation model is: A deep neural network architecture is constructed, the network includes an input layer, a feature extraction layer and an output layer; a training data set is prepared, the training data set includes comprehensive feature vectors of historical cases and complication label information; a stratified sampling method is used to divide the training set and the validation set to maintain the data distribution of the training set and the validation set, a loss function is designed, the loss function includes a classification loss and a regularization term, an adaptive optimization algorithm is used for network parameter training, the optimization algorithm adjusts the learning rate, the training error is monitored during the training process, the training is stopped when the validation set error rises, and the model parameters are saved after the training is completed.

[0013] As a further scheme of the present application: the specific process of the feature extraction layer is: A plurality of cascaded feature transformation modules are constructed, each module containing a linear transformation and a nonlinear activation function, the first feature transformation module receives the feature vector of the input layer, performs feature extraction, the subsequent modules perform feature transformation on the output of the previous module, residual connection is added during feature transformation, and bottom layer feature information is transmitted, the output dimension of each feature transformation module is gradually reduced, the feature dimension is gradually reduced, and the output of the last feature transformation module is transmitted to the output layer, and the parameters of the feature extraction layer are updated through the back propagation algorithm.

[0014] As a further scheme of the present application: in S5, the specific process of generating the risk assessment report is: A mapping relationship table of risk probability value and risk level is obtained, the mapping relationship table defines the risk level corresponding to different probability ranges, the complication risk probability value is matched with the mapping relationship table, and the risk level to which the current patient belongs is determined; Patient identification information and key clinical data are extracted from the clinical data set, the key clinical data includes main abnormal indicators and a summary of basic diseases;According to the pre-defined structured document template, the patient identification information, the key clinical data, the risk probability value and the determined risk level are combined to generate a complete risk assessment report document.

[0015] The beneficial effects of the present application are: The present application quantifies the long-term dynamic influence of the basic disease on the physiological state of the pancreas by constructing a basic disease influence factor, solving the problem of insufficient utilization of basic disease variables in existing models;The time series analysis method is used to process the basic disease history record, and the long-term influence characteristics in the time series data are extracted, overcoming the limitations of simplifying the basic disease as a static variable;The attention allocation mechanism in the feature fusion process effectively integrates real-time clinical indicators and basic disease influence factors, establishing deep associations between features of different time scales;The feature extraction layer based on deep neural network realizes nonlinear transformation and deep feature extraction of the comprehensive feature vector, and finally generates a more accurate complication risk probability;The whole scheme realizes the comprehensive assessment of the complication risk of acute pancreatitis patients, and provides more reliable data support for clinical decision-making. BRIEF DESCRIPTION OF DRAWINGS

[0016] The present application will be further described below with reference to the accompanying drawings.

[0017] Figure 1 is a flowchart of the present application. DETAILED DESCRIPTION

[0018] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described, obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work belong to the protection scope of the present application.

[0019] Please refer to Figure 1 The application is an acute pancreatitis complication evaluation method based on artificial intelligence, comprising the following steps: S1, acquiring a clinical data set of an acute pancreatitis patient, the clinical data set comprising real-time clinical indicators at the onset of acute pancreatitis and a patient's basic disease history record; S2, performing time series analysis on the basic disease history record, extracting long-term influence characteristics of the basic disease on the physiological state of the pancreas, and generating a basic disease influence factor; S3, performing standardization processing on the real-time clinical indicators and the basic disease influence factor and calculating the correlation weight between the characteristics, and generating a fixed-dimension comprehensive feature vector according to the correlation weight; S4, inputting the comprehensive feature vector into a trained artificial intelligence evaluation model, performing layer-by-layer nonlinear transformation and information extraction on the input characteristics, and outputting a complication risk probability; S5, mapping the risk probability value to a predefined risk level, integrating patient identification information and key clinical data to form a structured document, and generating a risk evaluation report.

[0020] In the S1, the specific process of acquiring the clinical data set of the acute pancreatitis patient is as follows: A standardized medical data interface is adopted to be connected with a hospital information system, the interface conforms to the HL7FHIR protocol specification, and supports establishing a real-time data interaction link with an inpatient information management subsystem, a laboratory information management subsystem and a medical image archiving and communication subsystem in the hospital information system. Through the interface, first, complete medical records of the patient are extracted, wherein admission diagnosis information is acquired from a medical record homepage module of the inpatient information management subsystem, contains main diagnosis, secondary diagnosis and corresponding ICD-10 code of the patient during this admission, and needs to filter out case records with acute pancreatitis as the main diagnosis through coding matching; laboratory examination results are extracted from a test data warehouse of the laboratory information management subsystem, cover all biochemical, immunological and hematology detection items completed by the patient after admission, including detection item name, detection result value, unit, reference range and detection timestamp; and imaging reports are extracted from a report management module of the medical image archiving and communication subsystem, contain imaging examination types (such as abdominal CT, abdominal MRI and abdominal ultrasound), examination time, structured report text issued by an imaging physician and image metadata.

[0021] After obtaining the complete medical record, the clinical indicator screening process is started. Based on the clinical diagnosis and treatment guidelines for acute pancreatitis, the indicator screening rules are set. First, the laboratory test results are screened to extract the serum amylase level data directly related to the diagnosis of acute pancreatitis. The test results of venous blood samples collected within 24 hours after the onset of acute pancreatitis symptoms are limited, and the test data with quality abnormalities such as hemolysis and lipemia in the sample collection process are excluded. The imageology report is analyzed by natural language processing technology. Through the pre-trained medical text segmentation model and entity recognition model, abdominal imageology features are extracted from the report text, including pancreatic morphology (such as pancreatic enlargement, pancreatic contour blur), peripancreatic conditions (such as peripancreatic effusion, fluid accumulation), and pancreatic parenchymal changes (such as parenchymal necrosis, liquefaction), etc. Feature information is formed into a structured abdominal imageology feature dataset.

[0022] While extracting the clinical indicators related to acute pancreatitis, the basic disease history extraction process is started. Through the patient's unique identifier (such as ID card number, medical insurance card number), the past diagnosis and treatment record module in the electronic medical record system is associated, including outpatient diagnosis and treatment records, past hospitalization history summaries, health examination reports, and chronic disease management archives. Extract the basic disease history information from the above records, where the disease type is determined by ICD-10 basic disease coding, covering common chronic diseases such as hypertension, type 2 diabetes, chronic kidney disease, and coronary heart disease; the diagnosis basis extraction content includes laboratory test evidence (such as blood glucose test value, blood pressure measurement value) at the time of first diagnosis of the basic disease, imaging diagnosis results (such as heart ultrasound report, kidney CT report), and clinical symptom description text; the disease course record extraction content includes the first diagnosis time of the basic disease, the duration of the disease course, the diagnosis and treatment interventions (such as drug treatment plan, dose adjustment record, interventional or surgical treatment record) received during the progression of the disease, and the key indicator change data of regular review, which are sorted by timestamp to form a continuous basic disease course time series record.

[0023] In the S2, the specific process of the time series analysis is: I. Time series data reading and preprocessing The time series data analysis module is started to read the time-stamped structured data in the basic disease history record. The physiological parameter measurement values cover blood pressure (systolic pressure, diastolic pressure), fasting blood glucose, glycosylated hemoglobin, blood lipid four items (total cholesterol, triglyceride, low density lipoprotein cholesterol, high density lipoprotein cholesterol), liver and kidney function indicators (serum creatinine, glutamic-pyruvic transaminase) and other regular monitoring data, and the data timestamp is accurate to the collection time (year-month-day-hour-minute); the medical event label includes intervention events related to the basic disease, such as adjustment of antihypertensive / antihyperglycemic drug regimen (drug type, dose change), complication occurrence record (such as confirmed diabetic nephropathy, hypertensive heart disease attack), interventional treatment operation (such as coronary stent implantation, kidney dialysis start) and the like, and each event label is associated with a unique event type code and occurrence time.

[0024] The preprocessing stage is divided into two steps of data cleaning and missing value filling. The data cleaning link adopts a multi-rule checking mechanism: for physiological parameter measurement values, outliers are identified by the 3σ principle (calculate parameter mean and standard deviation, and remove values exceeding ±3 times the standard deviation of the mean), and abnormal data are filtered according to clinical common sense (such as records with systolic pressure less than 80 mmHg or greater than 220 mmHg), and the abnormal data are marked as invalid and the original record is kept for tracing; for medical event labels, logical checking is performed on event type codes and timestamps to remove records with time contradictions (such as event occurrence time earlier than basic disease diagnosis time) or coding errors (such as non-existent event type code). The missing value filling link adopts a scene-based strategy: for continuous physiological parameters (such as blood glucose, blood pressure), if the time interval of missing data is less than 7 days, linear interpolation is used to calculate the filling value based on the previous and subsequent valid measurement values; if the missing interval is greater than 7 days and there are other related parameters in the same time period (such as glycosylated hemoglobin and fasting blood glucose), a multivariate adaptive imputation (MICE) method is used to construct a prediction model to generate a filling value based on the clinical correlation between parameters; for missing medical event labels, indirect data such as outpatient prescription records and test report conclusions are used to complete the missing, and missing event labels that cannot be completed are marked as “not recorded” and marked in the data log.

[0025] II. Time window division and feature calculation After preprocessing, the time window segmentation module is activated, employing a fixed window length and sliding step strategy. The window length is determined based on the clinical monitoring cycle of the underlying disease; for example, the routine follow-up cycle for patients with hypertension / diabetes is 7 days, so the window length is set to 7 days. The sliding step is set to 1 day to ensure continuous coverage of the time series. During the segmentation process, starting from the time of the initial diagnosis of the underlying disease, data from 7 consecutive days are extracted sequentially to form windows, up to 24 hours before the onset of acute pancreatitis. Each window is assigned a unique window number and time range identifier (e.g., "Window 1: 2023-01-01 to 2023-01-07").

[0026] For each time window, the statistical characteristics of physiological parameters and the density of medical events were calculated separately. The calculation of physiological parameter statistical characteristics employed a multi-dimensional extraction method: for each continuous parameter, the mean (reflecting the average level of the parameter), standard deviation (reflecting the degree of parameter fluctuation), trend slope (fitting the relationship between the measured value and the collection time through linear regression; the slope sign indicates an upward / downward trend, and the absolute value indicates the trend strength), and coefficient of variation (the ratio of the standard deviation to the mean, a fluctuation index after eliminating the influence of dimensions) of all valid measurements within the window were calculated; for categorical parameters (such as drug usage type), the frequency and proportion of each category within the window were calculated. The calculation of medical event density used the window duration (7 days) as a baseline, counting the number of occurrences of various types of medical events within the window, and combining this with the clinical weight of the events (e.g., interventional treatment events were weighted at 3, medication adjustment events at 2, and routine follow-up events at 1) to calculate the weighted total number of events, which was then divided by the window duration to obtain the weighted event density per unit time (day), reflecting the activity level of basic disease intervention within the window.

[0027] III. Feature Sequence Construction and Dynamic System Modeling Based on the calculation results of each time window, a feature sequence is constructed. Each time window corresponds to a feature vector, and the vector dimension is determined by the sum of the number of statistical features of physiological parameters and the number of medical event densities (e.g., extracting 4 statistical features for each of the 8 physiological parameters and 2 types of medical event densities, the total dimension is 8×4+2=34). The feature vectors of all windows are arranged in chronological order (from early to late) to form a feature sequence with the dimension of "number of windows × feature dimension". This sequence fully describes the change process of the underlying disease over time.

[0028] The dynamic system modeling phase begins with establishing the system state equations. Based on the feature changes between two adjacent time windows in the feature sequence, Pearson correlation analysis is used to calculate the correlation coefficients between each feature in the preceding window and each feature in the following window. Feature pairs with an absolute correlation coefficient greater than 0.6 are selected to determine the system state variables (features from the preceding window that are strongly correlated with the features of the subsequent window, such as the slope of the blood glucose trend, the standard deviation of blood pressure, and the density of hypoglycemic drug adjustment events). The state equation structure can be linear or nonlinear. If the relationship between the state variables and time in the feature sequence is linearly distributed, a linear state equation is used (change in state variable = coefficient matrix × preceding state variable + constant term). If the distribution is nonlinear, a nonlinear state equation is used (introducing quadratic or exponential terms of the state variables).

[0029] The equation parameters were determined through fitting historical data. Feature sequences from historical cases (sample size no less than 500 cases) with the same underlying disease type and similar disease duration as the current patient were selected as training data. The objective function was to minimize the error between the predicted and actual state variable values. The L-BFGS optimization algorithm was used iteratively to find the optimal parameter combination (coefficient matrix, constant term, etc.). During parameter optimization, medical event density was introduced as an adjustment factor: when the medical event density within the window was higher than the historical average density (the average density of similar events calculated based on historical cases), the parameter update step size was reduced (step size coefficient set to 0.8) to avoid over-adjustment of parameters due to dense events; when the event density was lower than the historical average density, the parameter update step size was increased (step size coefficient set to 1.2) to improve the sensitivity of parameters to slow changes. Simultaneously, the parameter update direction was adjusted according to the event type. For example, the update direction of the blood glucose trend slope parameter corresponding to an event of increased hypoglycemic drug dosage was negative (inhibiting blood glucose rise), and the update direction of the blood pressure standard deviation parameter corresponding to hypertension complication events was positive (reflecting increased volatility).

[0030] Numerical methods are used to solve the system state equations. For linear state equations, the Euler method is employed: the state variables of the initial window (the first time window) are used as initial conditions, substituted into the state equation to calculate the predicted state value for the next window, and this predicted value is then used as input to calculate the predicted value for the next window after that, iterating in this manner until all windows are solved. For nonlinear state equations, the fourth-order Runge-Kutta method is used, which improves the accuracy of the numerical solution for nonlinear functions by setting four intermediate calculation points within each window time step. During the solution process, a state estimate (containing the predicted values ​​of all state variables) is output for each time window. The state estimates of all windows are arranged in chronological order to form a continuous disease progression trajectory, where each node corresponds to the basic disease state of a time window.

[0031] IV. Long-term impact feature extraction and generation of underlying disease impact factors For the simulated disease progression trajectory data, the feature extraction module is activated. Three methods—trend analysis, peak detection, and cycle identification—are used to extract the main change patterns: Trend analysis involves linear regression of the estimated values ​​of each state variable in the trajectory to obtain the slope and goodness of fit (R²) of the long-term trend (e.g., a continuous increase in mean blood glucose and a gradual decrease in blood pressure fluctuations), and significant trends with R² greater than 0.7 are selected as features; Peak detection calculates local maxima using a sliding window (with a window length of 3 time windows) to identify abnormal peaks in the state variables in the trajectory (e.g., a significantly higher mean blood glucose in a certain window than in the preceding and following windows), recording the peak occurrence time, peak size, and peak duration window number; Cycle identification converts the time-domain data of the trajectory into frequency-domain data using Fast Fourier Transform, identifying frequency components with an energy proportion exceeding 10% in the frequency domain, corresponding to the fluctuation cycle of the state variables (e.g., a small fluctuation in blood pressure every 14 days). The extracted trend features, peak features, and cycle features are integrated to form a long-term impact feature vector with fixed dimensions (e.g., containing 5 trend features, 3 peak features, and 2 cycle features, with a total dimension of 10).

[0032] Finally, the long-term impact feature vector is input into a pre-defined neural network structure. This neural network employs a three-layer fully connected architecture: the input layer dimension is consistent with the long-term impact feature vector dimension; two hidden layers are set, with the first hidden layer having twice the number of neurons as the input layer dimension, and the second hidden layer having half the number of neurons as the first layer, both using ReLU activation functions; the number of neurons in the output layer is determined according to the type of underlying disease (e.g., for hypertension, diabetes, and chronic kidney disease, the output layer dimension is 3), and the sigmoid activation function is used to ensure that the output value is in the 0-1 range. The neural network updates its parameters through a backpropagation algorithm (using the cross-entropy loss function to calculate the error between the predicted value and the actual impact label of the underlying disease in historical cases, and adjusting the weights through the Adam optimizer), and the final output vector is the underlying disease impact factor, with each dimension value reflecting the long-term impact strength of the corresponding underlying disease on the physiological state of the pancreas.

[0033] In S3, the specific process of feature fusion is as follows: I. Data Standardization Processing First, standardization operations were performed on real-time clinical indicators and underlying disease influencing factors, with the core objective of eliminating feature weight bias caused by differences in the units and value ranges of the two types of data. For real-time clinical indicators, the Z-score standardization method was adopted: first, the clinical indicator dataset of patients with the same type of acute pancreatitis in the historical case database was retrieved, and the global mean and standard deviation of each indicator (such as serum amylase, lipase, systolic blood pressure, and heart rate) were calculated; then, each real-time indicator value of the current patient was substituted into the transformation process, so that the mean of the transformed indicators approached 0 and the standard deviation approached 1, ensuring that indicators with different units (such as serum amylase in U / L and blood pressure in mmHg) were in the same numerical order of magnitude.

[0034] For the underlying disease influencing factors, a Min-Max standardization method was adopted. Since the influencing factors were already in the 0-1 range after the initial neural network output, but the distribution density of different dimensions (such as hypertension influencing factors and diabetes influencing factors) varied, further compression to a uniform value range was necessary. Specifically, the minimum and maximum values ​​of each influencing factor dimension in the historical training set were first calculated. Then, a linear transformation was used to map the current patient's influencing factor values ​​to the [0,1] range, avoiding an imbalance in feature contributions caused by dense values ​​in some dimensions and sparse values ​​in others. During the standardization process, all transformation parameters (mean, standard deviation, minimum, and maximum) were calculated offline from the historical case dataset and stored. These parameters were directly retrieved each time new patient data was processed, ensuring the consistency of the standardization rules.

[0035] II. Design and Implementation of Dual-Path Encoding Structure After standardization, a dual-path encoding structure is used to process the features of the two types of data separately to adapt to the subsequent interactive fusion requirements. The first path targets real-time clinical indicators and focuses on "high-dimensional feature extraction": this path adopts a multi-layer fully connected network architecture, with the input layer dimension consistent with the number of real-time clinical indicators (e.g., when including 8 indicators such as serum amylase, lipase, abdominal imaging feature quantification value, heart rate, and blood oxygen saturation, the input layer dimension is set to 8); the number of neurons in the first fully connected layer is set to twice the input layer dimension, and the activation function is ReLU, which is used to initially expand the feature expression space; the number of neurons in the second fully connected layer is consistent with the first layer, and a BatchNorm layer is added for batch normalization to alleviate the gradient vanishing problem; the last fully connected layer compresses the feature dimension to a preset intermediate dimension (e.g., 16 dimensions) and outputs the clinical indicator encoded feature vector.

[0036] The second path targets the impact factors of underlying diseases, focusing on "low-dimensional feature transformation": This path adopts a lightweight multilayer perceptron architecture, with the input layer dimension consistent with the impact factor dimension (e.g., when there are 3 types of underlying diseases, the input layer dimension is set to 3); the first layer uses a 1×1 convolutional kernel to upscale the features, expanding the dimension to 4 times that of the input layer, and the activation function is LeakyReLU (with a negative slope of 0.1) to enhance the feature capture capability of weak impact factors; the second layer is a fully connected layer, compressing the dimension to an intermediate dimension (e.g., 16 dimensions) that is the same as the output dimension of the first path, and a BatchNorm layer is also added to stabilize the training process; finally, the output is the encoded feature vector of the underlying disease impact factors, ensuring that the dimensions of the two types of encoded feature vectors match, laying the foundation for subsequent interactive fusion.

[0037] III. Implementation of Feature Interaction Layer Based on Attention Allocation Mechanism (1) Construction of feature interaction matrix First, a feature interaction matrix is ​​constructed. The row dimension of the matrix is ​​consistent with the dimension of the clinical indicator coding features output by the first path, and the column dimension is consistent with the dimension of the impact factor coding features output by the second path (e.g., if both are 16-dimensional, the matrix size is 16×16). The position of each element in the matrix corresponds to a pairing of "single physiological indicator coding feature - single underlying disease impact factor coding feature". For example, the element in the i-th row and j-th column corresponds to the interaction relationship between the i-th feature of the clinical indicator coding and the j-th feature of the underlying disease impact factor coding. During the construction process, the two types of coding feature vectors are converted into a two-dimensional matrix form through tensor reshaping operations, and then the initial interaction matrix framework is generated through outer product operations to ensure that each feature pairing relationship is uniquely mapped to a matrix element.

[0038] (2) Correlation strength calculation and normalization For each element in the feature interaction matrix, the association strength value is calculated: A vector dot product operation is used, taking the i-th feature vector (1-dimensional vector) of the clinical indicator encoding feature and the j-th feature vector (1-dimensional vector) of the underlying disease impact factor encoding feature, to obtain the original association strength value of that element. The core logic of this operation is: the larger the dot product result, the stronger the association between the two types of features in expressing the patient's physiological state (e.g., a high dot product value between "hyperglycemia impact factor feature" and "elevated serum amylase feature" reflects a strong association between underlying diabetes and the degree of inflammation in acute pancreatitis).

[0039] After calculating the original association strength, Softmax normalization is performed on each row of the matrix: the original association strength values ​​of all elements in each row are substituted into the Softmax function, so that the sum of the normalized results of each row's elements is 1, generating the attention weight distribution. The reason for normalization at the "row" level is to focus on "which underlying disease influencing factors should be primarily associated with a single physiological indicator feature." For example, for the "serum amylase feature" row, the column with the highest weight after normalization corresponds to the underlying disease factor that has the greatest impact on it, ensuring the targeted allocation of weights.

[0040] (3) Feature weighting and nonlinear transformation The underlying disease impact factor coding features are reweighted based on the attention weight distribution: the attention weight matrix is ​​multiplied by the impact factor coding feature matrix output from the second path, adjusting each impact factor feature dimension according to its corresponding weight. Dimensions with higher weights retain more original information, while information in dimensions with lower weights is suppressed. After weighting, the adjusted impact factor feature matrix is ​​element-wise added to the clinical indicator coding feature matrix output from the first path to form a preliminary interactive feature matrix.

[0041] To enhance feature representation, a nonlinear transformation layer is introduced: This layer employs the LeakyReLU activation function (with a negative slope of 0.1) to perform a nonlinear transformation on each element of the initial interaction feature matrix, breaking the linear correlation between features. Simultaneously, a Dropout layer (with a dropout probability of 0.2) is added to randomly mask some feature dimensions, preventing the model from over-relying on local features. The output after the nonlinear transformation is an enhanced interaction feature matrix, with dimensions consistent with the initial interaction feature matrix.

[0042] (4) Iterative optimization of attention weights The attention weights are calculated using an iterative optimization approach, with the core objective of gradually adjusting the weight distribution to better reflect clinical correlation patterns. The iteration trigger condition is that the difference between the current weight distribution and the previous iteration distribution exceeds a preset threshold (e.g., 0.05), calculated using KL divergence. The number of iterations is dynamically adjusted based on the total feature dimension: when the total feature dimension after dual-path encoding (clinical indicator encoding dimension + impact factor encoding dimension) is greater than 50, the maximum number of iterations is set to 3; when the total dimension is less than or equal to 50, the maximum number of iterations is set to 2. During each iteration, the attention weight matrix is ​​fine-tuned using a gradient descent algorithm, aiming to maximize the similarity between the interaction feature matrix and the historical best feature matrix, until the iteration termination condition is met or the maximum number of iterations is reached. The final output is the optimized attention weights and the enhanced interaction feature matrix.

[0043] IV. Feature Compression and Generation of Synthetic Feature Vectors The enhanced interactive feature matrix is ​​input into the feature compression layer, which adopts a hybrid dimensionality reduction strategy of "fully connected + principal component analysis (PCA)": First, the dimension of the interactive feature matrix is ​​compressed to a preset intermediate dimension (such as 32 dimensions) through the fully connected layer to reduce the complexity of subsequent PCA calculations; then, PCA dimensionality reduction is performed on the feature vector output by the fully connected layer to retain the principal components whose cumulative variance contribution exceeds 95%, and finally, a comprehensive feature vector with fixed dimensions (such as 64 dimensions or 128 dimensions, the specific dimension is specified by the configuration file before model training).

[0044] During feature compression, the number of principal components in PCA is determined by offline analysis of historical case interaction feature data, ensuring that the compressed features retain the core information of the original interaction features. Simultaneously, L2 normalization is performed on the compressed feature vectors to ensure the Euclidean norm of the vectors is 1, preventing differences in vector magnitude from affecting the input stability of subsequent AI evaluation models. The final output fixed-dimensional comprehensive feature vector can be directly used as input data for subsequent artificial intelligence evaluation models, supporting the calculation of complication risk probabilities.

[0045] In step S4, the training process of the artificial intelligence evaluation model is as follows: I. Training Process of Artificial Intelligence Evaluation Model (1) Construction of deep neural network architecture First, the architecture design and initialization of the deep neural network are completed. The overall architecture adopts a three-layer progressive structure of "input layer - feature extraction layer - output layer". The dimension of the input layer is consistent with the dimension of the comprehensive feature vector generated by S3. For example, when the comprehensive feature vector is 64-dimensional, the number of neurons in the input layer is set to 64. At the same time, a BatchNorm layer is connected after the input layer to perform batch normalization processing on the input features, so that the feature mean approaches 0 and the variance approaches 1, providing a stable input distribution for the subsequent feature extraction layer. The input layer and the feature extraction layer are connected by a fully connected layer. The weight parameters of this connection layer are initialized using the He normal method, and the bias parameters are initialized to 0 to ensure that the initial parameter distribution is adapted to the gradient propagation characteristics of the subsequent ReLU activation function.

[0046] The feature extraction layer, as the core of the architecture, adopts a multi-module cascade structure (the number of modules is determined by the dimension of the comprehensive feature vector, typically 3-5). Each module contains sub-layers such as linear transformation, non-linear activation, and regularization; specific implementation details will be discussed separately later. The design of the output layer is determined based on the type of complication assessment task: for risk assessment of a single complication (such as pancreatic abscess), the output layer has one neuron, using the Sigmoid activation function, and the output value directly corresponds to the risk probability of the corresponding complication; for joint assessment of multiple complications (such as pancreatic abscess, multiple organ failure, gastrointestinal bleeding), the number of neurons in the output layer is consistent with the number of complication types, with each neuron corresponding to one complication, also using the Sigmoid activation function, outputting the risk probabilities of each complication separately. The output layer weights are initialized using Xavier normality, and the bias is initialized to 0 to ensure that the output probability distribution is within a reasonable range during the initial training phase.

[0047] (2) Preparation of training dataset The training dataset is constructed based on historical clinical case data, and its core consists of two types of data: "comprehensive feature vector" and "complication annotation information". The comprehensive feature vector comes from the output results of historical cases after processing through the S1-S3 process. That is, for each historical case of acute pancreatitis, a comprehensive feature vector with fixed dimensions is generated according to the same clinical data collection, underlying disease time series analysis and feature fusion process, forming a feature matrix (the dimension is "number of cases × feature dimension").

[0048] Complication labeling information is determined through a dual approach: manual review of historical case records and machine coding matching. First, descriptions of complications mentioned in the discharge diagnosis and progress notes are extracted, and a medical named entity recognition model (fine-tuned based on a BERT pre-trained model) is used to identify the complication type. Then, ICD-10 coding matching (e.g., pancreatic abscess corresponds to K85.802, multiple organ failure corresponds to R65.100) verifies the identification results to ensure labeling accuracy. Finally, the labeled information is converted into numerical labels; for example, in a single complication assessment, "with complications" is labeled as 1, and "no complications" as 0. In multiple complication assessments, one-hot coding is used (e.g., "pancreatic abscess only" is labeled as [1,0,0]). During dataset construction, cases with more than 10% missing comprehensive feature vectors or ambiguous complication labeling (e.g., only mentioning "complication" without specifying the type) are removed to ensure data quality.

[0049] (3) Division of training set and validation set The dataset is partitioned using stratified sampling, with the core objective of maintaining consistency in the distribution of complication between the training and validation sets to avoid a decline in model generalization ability due to sample bias. The stratification is based on "complication type distribution" and "underlying disease combination type": First, the dataset is divided into different levels according to "presence of complications" or "specific complication type," for example, level 1 is "no complications," level 2 is "pancreatic abscess," and level 3 is "multiple organ failure." Then, within each level, sub-strata are further subdivided according to "underlying disease combination type" (e.g., "hypertension + diabetes," "chronic kidney disease only," "no underlying disease").

[0050] The sampling process is implemented using the StratifiedShuffleSplit algorithm. A predetermined ratio for the training and validation sets is set (typically 7:3). Samples are randomly drawn from each sub-layer according to this ratio, ensuring that the proportion of each sub-layer in the training and validation sets is completely consistent with the original dataset. After the split, data augmentation operations (such as random feature perturbation, adding small Gaussian noise to each feature value) are performed on the training set, while the validation set remains unchanged to avoid interference from data augmentation on the validation results.

[0051] (4) Loss function design and optimization algorithm selection The loss function employs a composite structure of "classification loss + regularization term" to balance the model's fitting ability and resistance to overfitting. The classification loss is selected based on the task type: binary cross-entropy loss is used for single complication assessment, calculating the cross-entropy between the model's predicted probability and the true label (0 or 1); multivariate cross-entropy loss is used for joint assessment of multiple complications, calculating the cross-entropy between the predicted probability and the true label for each complication separately and then summing the results.

[0052] The regularization term employs L2 regularization (weight decay), multiplying the sum of squares of all trainable parameters (fully connected layer weights, BatchNorm layer parameters, etc.) by a preset weight decay coefficient, and adding it to the classification loss to suppress excessive parameter growth and reduce the risk of overfitting. The weight decay coefficient is determined through 5-fold cross-validation, selecting the coefficient value that minimizes the validation set loss within a preset candidate interval.

[0053] The optimization algorithm used is the Adam adaptive optimization algorithm, which combines momentum gradient descent with an adaptive learning rate adjustment mechanism. The initial learning rate is set according to the feature dimension (usually a preset baseline value determined based on previous experimental experience). The algorithm accumulates gradient directions using first-order momentum (β1, usually set to 0.9) and accumulates the squared gradient using second-order momentum (β2, usually set to 0.999), dynamically adjusting the learning rate of each parameter: the learning rate decreases for parameters with large gradients and increases for parameters with small gradients, achieving targeted parameter updates. A learning rate decay strategy is also introduced: if the validation set loss does not decrease for several consecutive epochs (e.g., 5 epochs), the current learning rate is multiplied by a decay factor (usually set to 0.5) until the learning rate drops to a preset minimum value.

[0054] (5) Training process monitoring and early termination mechanism The training process iterates in epochs. Within each epoch, the training set is input into the model in batches (BatchSize is set according to the GPU memory capacity). The predicted probabilities are calculated through forward propagation, and the gradient of the loss function with respect to the parameters of each layer is calculated through backpropagation. The parameters are then updated by the optimization algorithm. After each epoch, a complete forward propagation is performed on the validation set to calculate the validation set loss and evaluation metrics (such as accuracy and F1 score), and the changing trends of the training set loss and validation set loss are recorded.

[0055] The early stopping mechanism is used to prevent model overfitting. The trigger condition is set as "within a consecutive preset number of epochs (e.g., 10 epochs), the validation set loss continuously increases or decreases by a rate less than a preset threshold". When this condition is triggered, training is immediately stopped, the currently trained model parameters are discarded, and the model parameters with the smallest validation set loss before stopping are loaded (saved through the model checkpoint mechanism during training). This parameter set is the final trained model parameters and can be directly called upon for subsequent actual evaluation tasks.

[0056] II. Specific Implementation Process of Feature Extraction Layer (1) Structural design of cascaded feature transformation module The feature extraction layer contains multiple cascaded feature transformation modules. The number of modules is determined by the initial dimension of the synthesized feature vector. For example, when the initial dimension is 64, four modules are set to achieve gradual compression of feature dimensions and information purification. The basic structure of each feature transformation module is "linear transformation layer - BatchNorm layer - nonlinear activation layer - Dropout layer": The linear transformation layer is implemented using a fully connected layer. The number of neurons is set according to the dimensionality compression target of the current module. For example, when the output of the previous module is 64 dimensions, the number of neurons in the linear transformation layer of the current module is set to 48 dimensions to achieve initial dimensionality compression. The BatchNorm layer performs batch normalization on the features after linear transformation, eliminating inter-layer distribution bias and accelerating training convergence. The nonlinear activation layer uses the GELU activation function, which can retain more negative region feature information than ReLU, thus improving the ability to capture weak features. Dropout layers reduce co-adaptation among neurons and enhance the model's generalization ability by randomly disabling some neurons (with a preset fixed probability).

[0057] (2) Implementation of residual connection Each feature transformation module introduces residual connections, the core purpose of which is to solve the gradient vanishing problem in deep networks while preserving low-level feature information. The specific implementation logic of residual connections is as follows: the input feature of the module (denoted as X) is added element-wise to the output feature of the module after "linear transformation-BatchNorm-activation-Dropout" (denoted as F(X)) to obtain the final output of the module (denoted as H(X)=F(X)+X).

[0058] When the input dimension and output dimension of a module are inconsistent (i.e., the linear transformation layer compresses the dimension), a 1×1 convolutional layer needs to be added to the residual connection path to adjust the dimension of the input feature X: the number of output channels of the 1×1 convolutional layer is consistent with the final output dimension of the module, the convolutional kernel weights are initialized using He normality, and the dimension of X is converted to be the same as F(X) through this convolutional layer before performing element-wise addition to ensure the dimension compatibility of the residual connection.

[0059] (3) The logic of progressive compression of feature dimensions The output dimensions of each feature transformation module are gradually reduced according to preset rules. For example, when the initial input dimension is 64, the output dimensions of the four modules are set to 48, 32, 16, and 8 respectively. The basis for dimensionality compression is feature importance: the approximate dimensional range of the core features is determined through preliminary feature analysis (such as feature variance analysis based on historical data and mutual information calculation), ensuring that the final module output dimension (e.g., 8 dimensions) can cover more than 95% of the core information, while eliminating redundant features.

[0060] During dimensionality compression, the weight parameters of the linear transformation layer automatically learn the importance of features, assigning larger values ​​to core features and smaller values ​​to redundant features, thus achieving adaptive feature selection. The output of the final feature transformation module (such as an 8-dimensional feature vector) is directly passed to the output layer as the core input feature for calculating the risk probability.

[0061] (4) Parameter update mechanism The parameters of all modules in the feature extraction layer (including the weights and biases of the linear transformation layer, the parameters of the BatchNorm layer, and the weights of the 1×1 convolutional layer) are updated through the backpropagation algorithm. In each training batch, the gradient of the loss function is backpropagated from the output layer to the feature extraction layer, and the gradient values ​​of the parameters of each layer in each module are calculated in turn. Then, the Adam optimization algorithm adjusts the parameters according to the gradient values: the weight parameters are updated in the direction of the gradient, and the bias parameters and the parameters of the BatchNorm layer are updated synchronously according to the same optimization rules. This ensures that the parameters of the entire feature extraction layer are optimized in conjunction with the parameters of the input and output layers, so that the model as a whole converges to the optimal state.

[0062] In step S5, the specific process for generating the risk assessment report is as follows: The mapping table between risk probability values ​​and risk levels is constructed jointly using clinical treatment guidelines and historical case outcome data. It is stored in the configuration repository of the medical data management system and uses a structured data table format. Fields include complication type, lower limit of probability range, upper limit of probability range, risk level name, and level description. When the system starts matching, it first reads the complication risk probability value and corresponding complication type output by the artificial intelligence assessment model. Then, it uses a structured query language to retrieve the mapping table corresponding to that complication type from the configuration repository. The risk probability value is compared numerically with the probability range in the table. If the probability value falls within a certain range, the risk level corresponding to that range is determined as the current patient's complication risk level. If multiple complication risk probability values ​​exist, the matching process is executed separately to generate the risk level corresponding to each complication.

[0063] The key data extraction module was then activated. Patient identification information was extracted from the patient master index database of the hospital information system, obtained through association with the patient's unique identifier. Specific information included name, gender, age, hospital number, admission date, and ward / bed number, ensuring consistency with the hospital's existing medical record system. Key clinical data extraction consisted of two parts: abnormal indicator screening and underlying disease summary generation. Abnormal indicator screening compared real-time clinical indicators such as serum amylase level, lipase level, and white blood cell count with the corresponding reference ranges by calling the reference range configuration table of the laboratory information management system, marking indicators that exceeded the normal range and the extent of the exceedance. The underlying disease summary was extracted from the historical records of underlying diseases, screening for the type of underlying disease, diagnosis time, and average level and fluctuation of key physiological parameters (such as blood glucose and blood pressure) in the past three years. The structured data was converted into concise summary text using a natural language generation algorithm, ensuring the information was complete and conformed to clinical reading habits.

[0064] Finally, the structured report generation process is executed. The predefined structured document template uses Extensible Markup Language (XML) format. The template contains four fixed sections: patient basic information, key clinical data, risk assessment results, and clinical recommendations. Each section contains several data placeholders, each corresponding to one of the extracted data fields. The system reads the template through its template engine, automatically filling the corresponding placeholders with the extracted patient identification information, key clinical data, risk probability values ​​for each complication, and risk levels. Simultaneously, in the clinical recommendations section, it calls a pre-defined clinical recommendations library based on the risk level to generate treatment recommendations matching the risk level. After document generation, the XML format is converted to a portable document format or a document format supported by the hospital's electronic medical record system using a format conversion engine. Finally, it is stored in the electronic medical record system through a medical document interface, linked to the patient's unique identifier, forming a traceable and viewable structured risk assessment report document.

[0065] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.

Claims

1. A method for assessing complications of acute pancreatitis based on artificial intelligence, characterized in that, Includes the following steps: S1. Obtain the clinical dataset of patients with acute pancreatitis, which includes real-time clinical indicators during an acute pancreatitis attack and the patient's underlying disease history. S2. Perform time-series analysis on the historical records of the underlying diseases, extract the long-term impact characteristics of the underlying diseases on the physiological state of the pancreas, and generate the underlying disease impact factors. S3. Standardize the real-time clinical indicators and the underlying disease influencing factors and calculate the correlation weights between features. Generate a fixed-dimensional comprehensive feature vector based on the weighted correlation weights. S4. Input the comprehensive feature vector into the trained artificial intelligence evaluation model, perform layer-by-layer nonlinear transformation and information extraction on the input features, and output the probability of complication risk. S5. Map the risk probability value to a predefined risk level, and integrate patient identification information and key clinical data to form a structured document, generating a risk assessment report.

2. The method for assessing complications of acute pancreatitis based on artificial intelligence according to claim 1, characterized in that, In step S1, the specific process of obtaining the clinical dataset of patients with acute pancreatitis is as follows: Complete medical records of patients are extracted from the hospital information system through a medical data interface. The medical records include admission diagnosis information, laboratory test results and imaging reports. Clinical indicators related to the diagnosis of acute pancreatitis are screened from the medical records. The clinical indicators include serum amylase level and abdominal imaging features. At the same time, the patient's basic disease history records are extracted from their past medical history. The basic disease history records include disease type, diagnostic basis, and disease course records.

3. The method for assessing complications of acute pancreatitis based on artificial intelligence according to claim 1, characterized in that, In S2, the specific process of the time series analysis is as follows: Time-series data from the history of underlying diseases is read. This data includes regularly recorded physiological parameter measurements and medical event markers. The time-series data is preprocessed, including data cleaning and missing value imputation. The preprocessed data is divided into continuous time windows, and the statistical characteristics of physiological parameters and the density of medical events within each time window are calculated. Feature sequences are constructed based on the time window data, and a dynamic system modeling method is used to simulate the disease progression trajectory. Feature extraction is performed on the simulated trajectory data, and the main change patterns are extracted as long-term impact features. The long-term impact features are input into a neural network structure, and the underlying disease impact factor is output.

4. The method for assessing complications of acute pancreatitis based on artificial intelligence according to claim 3, characterized in that, The specific process of the dynamic system modeling method is as follows: A system state equation is established to describe the change of the characteristic sequence over time. The system state equation is constructed based on the correlation analysis of the characteristic changes of adjacent time windows. The equation parameters are determined by fitting historical data. The fitting process uses an optimization algorithm to find the optimal parameter combination. In the parameter optimization process, the density of medical events is introduced as an adjustment factor. The adjustment factor affects the step size and direction of parameter updates. The system state equation is solved using numerical calculation methods to calculate the state estimate for each time window. The state estimate forms a continuous disease progression trajectory.

5. The method for assessing complications of acute pancreatitis based on artificial intelligence according to claim 1, characterized in that, In step S3, the specific process of feature fusion is as follows: Data standardization was performed on real-time clinical indicators and underlying disease influencing factors to eliminate dimensional differences. A dual-path coding structure was adopted, with the first path extracting features from clinical indicators and the second path transforming the features of influencing factors. We design a feature interaction layer based on an attention allocation mechanism, calculate the correlation strength between two types of features, generate dynamic weight coefficients based on the correlation strength, perform weighted combination of the two types of features, input the weighted features into a feature compression layer, and generate a fixed-dimensional comprehensive feature vector through dimensionality reduction.

6. The method for assessing complications of acute pancreatitis based on artificial intelligence according to claim 5, characterized in that, The specific process of the attention allocation mechanism is as follows: Construct a feature interaction matrix, where rows correspond to clinical indicator features and columns correspond to basic disease influencing factor features. Calculate the association strength value of each element in the feature interaction matrix. The association strength value is obtained by the inner product operation of the feature vectors. Normalize the association strength value to generate an attention weight distribution. The original features are reweighted based on the attention weight distribution to highlight key feature dimensions. The weighted features are then passed through a non-linear transformation layer to enhance their expressive power. The calculation of attention weights adopts an iterative optimization method, and the number of iterations is dynamically adjusted according to the feature dimensions.

7. The method for assessing complications of acute pancreatitis based on artificial intelligence according to claim 1, characterized in that, In step S4, the training process of the artificial intelligence evaluation model is as follows: A deep neural network architecture is constructed, consisting of an input layer, a feature extraction layer, and an output layer. A training dataset is prepared, containing comprehensive feature vectors of historical cases and complication annotations. A stratified sampling method is used to divide the training and validation sets, maintaining the data distribution of the training and validation sets. A loss function is designed, including classification loss and a regularization term. An adaptive optimization algorithm is used to train the network parameters. The optimization algorithm adjusts the learning rate. The training error is monitored during training, and training is stopped when the validation set error increases. After training is completed, the model parameters are saved.

8. The method for assessing complications of acute pancreatitis based on artificial intelligence according to claim 7, characterized in that, The specific process of the feature extraction layer is as follows: Multiple cascaded feature transformation modules are constructed. Each module contains linear transformation and nonlinear activation function. The first feature transformation module receives the feature vector of the input layer and performs feature extraction. Subsequent modules perform feature transformation on the output of the previous module. Residual connections are added during the feature transformation process to pass low-level feature information. The output dimension of each feature transformation module is gradually reduced, and the feature dimension is gradually reduced. The output of the last feature transformation module is passed to the output layer. The parameters of the feature extraction layer are updated through the backpropagation algorithm.

9. The method for assessing complications of acute pancreatitis based on artificial intelligence according to claim 1, characterized in that, In step S5, the specific process for generating the risk assessment report is as follows: Obtain the mapping table between risk probability values ​​and risk levels. The mapping table defines the risk levels corresponding to different probability ranges. Match the complication risk probability values ​​with the mapping table to determine the current patient's risk level. Patient identification information and key clinical data are extracted from the clinical dataset. The key clinical data includes major abnormal indicators and a summary of the underlying disease. Following a predefined structured document template, the patient identification information, key clinical data, risk probability values, and determined risk levels are combined to generate a complete risk assessment report document.

Citation Information

Patent Citations

  • Diabetic nephropathy risk assessment method and system

    CN117457217A

  • Individualized nutrition treatment knowledge base construction method and system for critical patients

    CN119541773A

  • Health status assessment system applied to disease follow-up visit

    CN119626556A

  • Children nephropathy health management method and system based on multi-source data fusion

    CN120260898A

  • Analysis and prediction system based on disease data

    CN120299723A

Cited By

  • Multi-modal data fusion diabetes risk prediction system after acute pancreatitis

    CN121171617A

  • Acute pancreatitis specific data fusion method, device, equipment and medium

    CN121302290A

  • Method for automatically classifying and recording abnormal events in nephropathy follow-up visit system

    CN121439064A

  • Medical examination report processing method

    CN121659923A