Intelligent personalized nursing pathway management system for gastrointestinal surgery patients
Through the improved multi-scale GNN model and Minimax algorithm, combined with integration and interoperability modules, the problem of time dimension changes and path rigidity in the personalized care system for gastrointestinal surgery patients is solved, and highly customized care strategies and transparent decision-making are achieved. Improved pertinence and trust in care.
Patent Information
- Application Number
- CN202410964970.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-18
AI Technical Summary
The existing personalized nursing system for gastrointestinal surgery patients fails to fully consider the dynamic changes in the patient's recovery progress in the time dimension, resulting in a lack of timely adjustment capabilities in nursing recommendations, rigid care path design, difficulty in coping with complex and changing clinical situations, and AI The algorithm lacks explainability, which affects trust.
Using an improved multi-scale GNN model and an optimized Minimax algorithm, it constructs a composite spatio-temporal graph through deep mining of patient health data, generates highly personalized care paths, and improves transparency and trust through integration and interoperability modules.
It significantly improves the pertinence and effectiveness of the care path, ensures that each patient receives the most appropriate care plan, enhances the customization and personalization of the care plan, and improves the trust of medical staff and patients in the AI recommended plan.
Smart Images

Figure CN118507005B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and specifically to an intelligent personalized nursing pathway management system for gastrointestinal surgery patients. Background Art
[0002] The existing personalized care for gastrointestinal surgery patients uses AI and big data analysis technology to promote the precision of nursing decisions and improve the quality and efficiency of nursing. The general model currently used fails to fully consider the dynamic changes in the patient's recovery progress in the time dimension, resulting in the lack of necessary timely adjustment capabilities in the generated personalized nursing recommendations, making it difficult to achieve refined management and optimization of nursing interventions; the rigidity of the nursing pathway design limits its flexible response to complex and changing clinical situations, especially when facing a patient group with high individual differences and diverse conditions, the universality of the standard pathway seems to be stretched; the high reliance on AI algorithms in the nursing decision-making process, if lacking sufficient explainability and transparency, may weaken the trust of medical staff and even patients in the recommended plan. Summary of the invention
[0003] In view of the above situation, the present invention provides an intelligent personalized nursing pathway management system for gastrointestinal surgery patients. The general model used fails to fully consider the dynamic changes of the patient's recovery progress in the time dimension, resulting in the lack of necessary timely adjustment capabilities for the generated personalized nursing recommendations. This solution adopts an improved multi-scale GNN model, which aims to accurately construct a personalized nursing pathway management system for gastrointestinal surgery patients. By deeply mining the patient's specific health data, a composite multi-scale spatiotemporal graph is constructed to achieve a multi-dimensional and multi-level understanding of the patient's condition, analyze the complex relationships and patterns in the graph, and then generate a highly personalized nursing pathway. In view of the inherent rigidity in the nursing pathway design, its effective adaptation to the complex and changing situations in clinical scenarios, and the lack of universal applicability of the standard pathway, the optimized Minimax algorithm is used to fine-tune the parameters of the improved multi-scale GNN model. Through this process, the model can be dynamically adjusted according to the specific nursing needs of the individual, thereby producing a more accurate and customized nursing plan that fits the individual's situation.
[0004] The intelligent personalized nursing pathway management system for gastrointestinal surgery patients provided by the present invention includes a patient information management module, a personalized nursing module, a clinical pathway management module, an intelligent reminder and monitoring module, and an integration and interoperation module;
[0005] The patient information management module collects and maintains the patient's basic information, medical history, admission diagnosis data, physiological indicators, hospital examination results, surgical conditions and complication risks. The basic information includes the patient's name, age, gender, address and telephone number;
[0006] The clinical pathway management module uses an improved multi-scale GNN model to analyze the data of the patient information management module to generate a standardized nursing pathway;
[0007] The personalized care module uses an optimized Minimax algorithm to optimize the improved multi-scale GNN model, adjusts the standardized care pathway for patients with different gastrointestinal surgical diseases, and allows appropriate adjustments based on the patient's specific response to generate a personalized care pathway;
[0008] The intelligent reminder and monitoring module provides real-time reminder functions and monitors the patient's physiological parameters to detect abnormalities and issue warnings in a timely manner;
[0009] The integration and interoperability module provides a user interface, allowing users to view information in all modules and seamlessly integrate with other hospital information systems to ensure data flow, reduce duplicate entry, and improve work efficiency.
[0010] Furthermore, the clinical pathway management module uses an improved multi-scale GNN model to analyze the data of the patient information management module, specifically including the following steps:
[0011] Step S1: Data preprocessing, cleaning and standardizing the data in the patient information management module to obtain the patient's personal data;
[0012] Step S2: adaptive graph generation;
[0013] Step S3: multi-scale graph convolution;
[0014] Step S4: prediction module construction;
[0015] Step S5: Loss function optimization. During the training process, the weight matrix is adjusted using the back propagation algorithm and the loss function. , optimize the value of the prediction error;
[0016] Further, step S2 specifically includes the following steps:
[0017] Step S21: Time feature extraction, each patient is regarded as a node, the node features include the patient's personal data, and the local time series features of each node are extracted using a macro-scale time convolution block and a micro-scale time convolution block to obtain macro-scale time series features and micro-scale time series features;
[0018] Step S22: time coding, using a time encoder based on the N-Beats framework that incorporates additional sequence features to encode the macro time series features and the micro time series features to obtain macro coding features and micro coding features, the additional sequence features including the living environment and weather conditions of the patient's area;
[0019] Step S23: long-distance modeling, using the macro-encoded features as input, constructing a macro-adjacency matrix representing the connectivity between different features, and generating a long-distance feature graph;
[0020] Step S24: short-range modeling, using micro-scale short-range dependencies to estimate the encoding features, and using additional signals to construct a micro-adjacency matrix to generate a short-range feature map, the additional signals including the patient's diet and exercise conditions;
[0021] Step S25: activation function, using the ReLU activation function to suppress and eliminate connections between irrelevant features, simplifying long-distance feature maps and short-distance feature maps;
[0022] Further, step S3 specifically includes the following steps:
[0023] Step S31: preprocessing the adjacency matrix, using the method of removing self-loops and normalizing to preprocess the macro adjacency matrix and the micro adjacency matrix to obtain new adjacency matrices Ac and As;
[0024] Step S32: applying a graph convolutional network, using the new adjacency matrices Ac and As and the time series features to perform graph convolution operations to generate local features Hc and regional features Hs;
[0025] Step S33: constructing a transfer matrix to identify the subordinate relationship between different features. The formula used is as follows:
[0026] [Tr] i,l ={ 1 N(l) i∈l 0 other ;
[0027] In the formula, Indicates characteristics, is the feature range, express yes subordinate, Indicates belonging to The number of features, is the transfer matrix;
[0028] Step S34: scale sharing, using the transfer matrix to obtain multi-scale nursing conditions from different scales, and using the temporal attention mechanism to obtain the correlation between features at different scales to obtain scale-shared features;
[0029] Step S35: multi-scale fusion, using the correlation matrix to extract scale-shared features, and using a serial concatenation operation to fuse the local features Hc and the regional features Hs to obtain multi-scale fusion features;
[0030] Further, step S4 specifically includes the following steps:
[0031] Step S41: Initialize the weight matrix. Initialize the weight matrix , whose dimension is La*2C, where La is the number of predicted time steps and 2C is the number of features of multi-scale fusion features;
[0032] Step S42: Generate predicted values using weight matrix Perform matrix multiplication calculation with multi-scale fusion features to generate prediction values;
[0033] Step S43: Loss function calculation, using mean square error to calculate the difference between the predicted value and the actual value.
[0034] Furthermore, the personalized care module uses an optimized Minimax optimization algorithm to optimize the improved multi-scale GNN model, specifically including the following steps:
[0035] Step M1: Initialize the reference model, select a Meta model as the reference model, and train the Meta model using the reference domain weights. The number of training times is T and the batch size is b.
[0036] Step M2: Proxy model training;
[0037] Step M3: model training optimization;
[0038] Step M4: Model application, applying the optimized improved multi-scale GNN model to the clinical pathway management module to optimize and adjust individual clinical care;
[0039] Furthermore, step M2 specifically includes the following steps:
[0040] Step M21: Initialize the proxy model, select the TinyBERT model as the proxy model, and construct the minimum and maximum objective function;
[0041] Step M22: Calculate excess losses, and calculate the excess losses of the proxy model and the reference model, that is, the loss of the proxy model minus the loss of the reference model;
[0042] Step M23: Update domain weights and proxy models. Use Group DRO optimizer to update domain weights and Adafactor optimizer to update parameters of proxy models.
[0043] Step M24: Repeat the steps and execute the above steps in a loop until T iterations are completed;
[0044] Further, step M3 specifically includes the following steps:
[0045] Step M31: Calculate the average domain weight, and calculate the average domain weight in the training of step M2;
[0046] Step M32: resample the data, sample the data set based on the average domain weight, and create a training data distribution P(x);
[0047] Step M33: training the large model, using the training data distribution P(x) to train the improved multi-scale GNN model;
[0048] Step M34: Iterate the optimization, use the average domain weight obtained in the previous round of optimization as the reference domain weight for the next round, and repeat steps M1 to M3 until the domain weights converge.
[0049] The beneficial effects achieved by the present invention using the above scheme are as follows:
[0050] (1) In view of the problem that the general model used failed to fully consider the dynamic changes of the patient's recovery progress in the time dimension, resulting in the lack of necessary timely adjustment capabilities in the generated personalized nursing recommendations, this scheme adopted an improved multi-scale GNN model to accurately construct a personalized nursing pathway management system for gastrointestinal surgical patients. By deeply mining the patient's specific health data, a composite multi-scale feature graph that integrates time series and spatial structure information was constructed. It can comprehensively understand the patient's condition from multiple dimensions and levels, and deeply analyze the complex associations and patterns in the graph, so as to generate highly customized nursing strategies to ensure that each patient can obtain the most appropriate nursing pathway, significantly improving the pertinence and effectiveness of nursing.
[0051] (2) In order to address the inherent rigidity of nursing pathway design, its effective adaptation to complex and changing situations in clinical scenarios, and the lack of universal applicability of standard pathways, the optimized Minimax algorithm is used to fine-tune the parameters of the improved multi-scale GNN model to ensure that the model can flexibly adapt to the unique nursing needs of each patient, enhance the prediction accuracy of the improved multi-scale GNN model, and make the output nursing plan more customized and personalized, fully taking into account individual differences, and providing patients with more accurate nursing strategies that suit their specific circumstances.
[0052] (3) At the same time, the high reliance on AI algorithms in the nursing decision-making process and the lack of sufficient explainability and transparency may undermine the trust of medical staff and even patients in the recommended plans. The use of integrated and interoperable modules to display the full picture of the nursing pathway, including the processing results of the patient's personal data, can enhance the transparency of decision-making and thereby improve the acceptance and trust of patients and medical teams in AI recommended plans. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1A schematic diagram of the intelligent personalized nursing pathway management system for gastrointestinal surgery patients provided by the present invention;
[0054] Figure 2 is a schematic flow chart of step S2;
[0055] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0056] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0057] Example 1, see Figure 1 The intelligent personalized nursing pathway management system for gastrointestinal surgery patients provided by the present invention includes a patient information management module, a personalized nursing module, a clinical pathway management module, an intelligent reminder and monitoring module, and an integration and interoperation module;
[0058] The patient information management module collects and maintains the patient's basic information, medical history, admission diagnosis data, physiological indicators, hospital examination results, surgical conditions and complication risks. The basic information includes the patient's name, age, gender, address and telephone number;
[0059] The clinical pathway management module uses an improved multi-scale GNN model to analyze the data of the patient information management module to generate a standardized nursing pathway;
[0060] The personalized care module uses an optimized Minimax algorithm to optimize the improved multi-scale GNN model, adjusts the standardized care pathway for patients with different gastrointestinal surgical diseases, and allows appropriate adjustments based on the patient's specific response to generate a personalized care pathway;
[0061] The intelligent reminder and monitoring module provides real-time reminder functions and monitors the patient's physiological parameters to detect abnormalities and issue warnings in a timely manner;
[0062] The integration and interoperability module provides a user interface, allowing users to view information in all modules and seamlessly integrate with other hospital information systems to ensure data flow, reduce duplicate entry, and improve work efficiency.
[0063] Embodiment 2: This embodiment is based on the above embodiment. In the patient information management module, in addition to collecting and maintaining the patient's basic information, medical history, admission diagnosis data, physiological indicators, hospital examination results, surgical conditions and complication risks, all medical data of the patient from admission to discharge and even subsequent follow-up are stored and integrated to form a continuous, complete and highly personalized health record.
[0064] In the intelligent reminder and monitoring module, sensor technology and complex data analysis algorithms are used to monitor and record patients' vital signs and physiological parameters in real time, including body temperature, heart rate, blood pressure, blood oxygen saturation, weight and wound observation. Once these parameters are detected to deviate from the normal range, the system will immediately trigger an alarm to notify medical staff to intervene to ensure the safety of the patient. At the same time, the system tracks the patient's daily activity patterns and living habits, including sleep quality, eating habits and exercise, and reminds patients to take medication, review and perform specific rehabilitation training on time to ensure the smooth implementation of the treatment plan.
[0065] The sensor technology and complex data analysis algorithms include smart bracelets, smart watches and other mobile phone apps and devices for monitoring life and health.
[0066] Example 3, see Figure 1 and Figure 2 This embodiment is based on the above embodiment. The clinical pathway management module uses an improved multi-scale GNN model to analyze the data of the patient information management module, which specifically includes the following steps:
[0067] Step S1: Data preprocessing, cleaning and standardizing the data in the patient information management module to obtain the patient's personal data;
[0068] Step S2: adaptive graph generation;
[0069] Step S3: multi-scale graph convolution;
[0070] Step S4: prediction module construction;
[0071] Step S5: Loss function optimization. During the training process, the weight matrix is adjusted using the back propagation algorithm and the loss function. , optimize the value of the prediction error;
[0072] Step S2 specifically includes the following steps:
[0073] Step S21: Time feature extraction, each patient is regarded as a node, the node features include the patient's personal data, and the local time series features of each node are extracted using a macro-scale time convolution block and a micro-scale time convolution block to obtain macro-scale time series features and micro-scale time series features;
[0074] Step S22: time coding, using a time encoder based on the N-Beats framework that incorporates additional sequence features to encode the macro time series features and the micro time series features to obtain macro coding features and micro coding features, the additional sequence features including the living environment and weather conditions of the patient's area;
[0075] Step S23: long-distance modeling, using the macro-encoded features as input, constructing a macro-adjacency matrix representing the connectivity between different features, and generating a long-distance feature graph;
[0076] Step S24: short-range modeling, using micro-scale short-range dependencies to estimate the encoding features, and using additional signals to construct a micro-adjacency matrix to generate a short-range feature map, the additional signals including the patient's diet and exercise conditions;
[0077] Step S25: Activation function, using the ReLU activation function to suppress and eliminate connections between irrelevant features and simplify long-distance feature maps and short-distance feature maps.
[0078] Embodiment 4: This embodiment is based on the above embodiment, constructs a macro adjacency matrix in long-distance modeling, and generates a corresponding long-distance feature graph. The formula used is as follows:
[0079] [A] o ,j c =f[ φ c ∙Concat H o , H j ] ;
[0080] In the formula, is the trainable mapping vector, is the activation function, and represents two different macro-encoding features, [A] o ,j c represents the pairwise connectivity between macro adjacency matrices, Indicates a connectivity operation;
[0081] The micro adjacency matrix constructed in short-distance modeling uses the following formula:
[0082] [A] m , k s =f φ s ∙Concat H m , H k , I m , I k + 1 δ m,k ;
[0083] In the formula, is the trainable mapping vector, and represents two different microscopic encoding features, and represents the positional embedding of microscopic encoding features, Indicates additional signal, [A] m , k s Represents the pairwise connectivity between micro-adjacency matrices.
[0084] Embodiment 5, based on the above embodiment, step S3 specifically includes the following steps:
[0085] Step S31: preprocessing the adjacency matrix, using the method of removing self-loops and normalizing to preprocess the macro adjacency matrix and the micro adjacency matrix to obtain new adjacency matrices Ac and As;
[0086] Step S32: applying a graph convolutional network, using the new adjacency matrices Ac and As and the time series features to perform graph convolution operations to generate local features Hc and regional features Hs;
[0087] Step S33: constructing a transfer matrix to identify the subordinate relationship between different features. The formula used is as follows:
[0088] [Tr] i,l ={ 1 N(l) i∈l 0 other ;
[0089] In the formula, Indicates characteristics, is the feature range, express yes subordinate, Indicates belonging to The number of features, is the transfer matrix;
[0090] Step S34: scale sharing, using the transfer matrix to obtain multi-scale nursing conditions from different scales, and using the temporal attention mechanism to obtain the correlation between features at different scales to obtain scale-shared features;
[0091] Step S35: multi-scale fusion, using the correlation matrix to extract scale-shared features, and using a serial concatenation operation to fuse the local features Hc and the regional features Hs to obtain multi-scale fusion features.
[0092] Embodiment 6, based on the above embodiment, step S4 specifically includes the following steps:
[0093] Step S41: Initialize the weight matrix. Initialize the weight matrix , whose dimension is La*2C, where La is the number of predicted time steps and 2C is the number of features of multi-scale fusion features;
[0094] Step S42: Generate predicted values using weight matrix Perform matrix multiplication with multi-scale fusion features to generate prediction values. The formula used is as follows:
[0095] ;
[0096] In the formula, Represents the weight matrix , represents multi-scale fusion features, is the predicted value;
[0097] Step S43: Loss function calculation, using mean square error to calculate the difference between the predicted value and the actual value, the formula used is as follows:
[0098] ;
[0099] In the formula, , and is a natural number, is the number of time steps for prediction, is the number of sequences, Indicates the The sequence in The predicted value at time, Indicates The sequence in The true value of the moment, It represents the absolute difference between the predicted value and the true value. It means to accumulate the prediction errors of all prediction time steps and all sequences. is the loss function;
[0100] In view of the problem that the general model used fails to fully consider the dynamic changes of the patient's recovery progress in the time dimension, resulting in the lack of necessary timely adjustment capabilities in the generated personalized nursing recommendations, this program adopts an improved multi-scale GNN model, aiming to accurately construct a personalized nursing pathway management system for gastrointestinal surgical patients. By deeply mining patient-specific health data, a composite multi-scale feature graph that integrates time series and spatial structure information is constructed. It can comprehensively understand the patient's condition from multiple dimensions and levels, and deeply analyze the complex associations and patterns in the graph, so as to generate highly customized nursing strategies to ensure that each patient can obtain the most appropriate nursing pathway, significantly improving the pertinence and effectiveness of nursing.
[0101] Embodiment 7, based on the above embodiment, the personalized care module uses the optimized Minimax optimization algorithm to optimize the improved multi-scale GNN model, specifically comprising the following steps:
[0102] Step M1: Initialize the reference model, select a Meta model as the reference model, and train the Meta model using the reference domain weights. The number of training times is T and the batch size is b.
[0103] Step M2: Proxy model training;
[0104] Step M3: model training optimization;
[0105] Step M4: Model application, applying the optimized improved multi-scale GNN model to the clinical pathway management module to optimize and adjust individual clinical care;
[0106] Step M2 specifically includes the following steps:
[0107] Step M21: Initialize the proxy model, select the TinyBERT model as the proxy model, and construct the minimum and maximum objective function;
[0108] Step M22: Calculate excess losses, and calculate the excess losses of the proxy model and the reference model, that is, the loss of the proxy model minus the loss of the reference model;
[0109] Step M23: Update domain weights and proxy models. Use Group DRO optimizer to update domain weights and Adafactor optimizer to update parameters of proxy models.
[0110] Step M24: Repeat the steps and execute the above steps in a loop until T iterations are completed;
[0111] Step M3 specifically includes the following steps:
[0112] Step M31: Calculate the average domain weight, and calculate the average domain weight in the training of step M2;
[0113] Step M32: resample the data, sample the data set based on the average domain weight, and create a training data distribution P(x);
[0114] Step M33: training the large model, using the training data distribution P(x) to train the improved multi-scale GNN model;
[0115] Step M34: Iterate the optimization, use the average domain weight obtained in the previous round of optimization as the reference domain weight for the next round, and repeat steps M1 to M3 until the domain weights converge.
[0116] In response to the inherent rigidity of nursing pathway design, its effective adaptation to complex and changing situations in clinical scenarios, and the lack of universal applicability of standard pathways, the optimized Minimax algorithm is used to fine-tune the parameters of the improved multi-scale GNN model to ensure that the model can flexibly adapt to the unique nursing needs of each patient, enhance the prediction accuracy of the improved multi-scale GNN model, and make the output nursing plans more customized and personalized, fully taking into account individual differences, and providing patients with more accurate nursing strategies that suit their specific circumstances.
[0117] At the same time, the high reliance on AI algorithms in the nursing decision-making process and the lack of sufficient explainability and transparency may undermine the trust of medical staff and even patients in the recommended plans. The use of integrated and interoperable modules to display the full picture of the nursing pathway, including the processing results of patients' personal data, can enhance the transparency of decision-making and thereby improve the acceptance and trust of patients and medical teams in AI recommended plans.
[0118] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0119] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. Intelligent personalized nursing pathway management system for gastrointestinal surgery patients, characterized by: Including patient information management module, personalized care module, clinical pathway management module, intelligent reminder and monitoring module, integration and interoperability module; The patient information management module collects and maintains the patient's basic information, medical history, admission diagnosis data, physiological indicators, hospital examination results, surgical conditions and complication risks. The basic information includes the patient's name, age, gender, address and telephone number; The clinical pathway management module uses an improved multi-scale GNN model to analyze the data of the patient information management module to generate a standardized nursing pathway; The personalized care module uses an optimized Minimax algorithm to optimize the improved multi-scale GNN model, adjusts the standardized care pathway for patients with different gastrointestinal surgical diseases, and allows appropriate adjustments based on the patient's specific response to generate a personalized care pathway; The intelligent reminder and monitoring module provides real-time reminder functions and monitors the patient's physiological parameters to detect abnormalities and issue warnings in a timely manner; The integration and interoperability module provides a user interface, allowing the user to view information from all modules and seamlessly integrate with other hospital information systems; The clinical pathway management module uses an improved multi-scale GNN model to analyze the data of the patient information management module, specifically including the following steps: Step S1: Data preprocessing, cleaning and standardizing the data in the patient information management module to obtain the patient's personal data; Step S2: adaptive graph generation; Step S3: multi-scale graph convolution; Step S4: prediction module construction; Step S5: Loss function optimization. During the training process, the weight matrix is adjusted using the back propagation algorithm and the loss function. , optimize the value of the prediction error; Step S2 specifically includes the following steps: Step S21: Time feature extraction, each patient is regarded as a node, the node features include the patient's personal data, and the local time series features of each node are extracted using a macro-scale time convolution block and a micro-scale time convolution block to obtain macro-scale time series features and micro-scale time series features; Step S22: time coding, using a time encoder based on the N-Beats framework that incorporates additional sequence features to encode the macro time series features and the micro time series features to obtain macro coding features and micro coding features, the additional sequence features including the living environment and weather conditions of the patient's area; Step S23: long-distance modeling, using the macro-encoded features as input, constructing a macro-adjacency matrix representing the connectivity between different features, and generating a long-distance feature graph; Step S24: short-range modeling, using micro-scale short-range dependencies to estimate the encoding features, and using additional signals to construct a micro-adjacency matrix to generate a short-range feature map, the additional signals including the patient's diet and exercise conditions; Step S25: activation function, using the ReLU activation function to suppress and eliminate connections between irrelevant features, simplifying long-distance feature maps and short-distance feature maps; Step S3 specifically includes the following steps: Step S31: preprocessing the adjacency matrix, using the method of removing self-loops and normalizing to preprocess the macro adjacency matrix and the micro adjacency matrix to obtain new adjacency matrices Ac and As; Step S32: applying a graph convolutional network, using the new adjacency matrices Ac and As and the time series features to perform graph convolution operations to generate local features Hc and regional features Hs; Step S33: constructing a transfer matrix to identify the subordinate relationship between different features. The formula used is as follows: ; In the formula, Indicates characteristics, is the feature range, express yes subordinate, Indicates belonging to The number of features, is the transfer matrix; Step S34: scale sharing, using the transfer matrix to obtain multi-scale nursing conditions from different scales, and using the temporal attention mechanism to obtain the correlation between features at different scales to obtain scale-shared features; Step S35: multi-scale fusion, using the correlation matrix to extract scale-shared features, and using a serial concatenation operation to fuse the local features Hc and the regional features Hs to obtain multi-scale fusion features; Step S4 specifically includes the following steps: Step S41: Initialize the weight matrix. Initialize the weight matrix , whose dimension is La*2C, where La is the number of predicted time steps and 2C is the number of features of multi-scale fusion features; Step S42: Generate predicted values using weight matrix Perform matrix multiplication with multi-scale fusion features to generate prediction values. The formula used is as follows: ; In the formula, Represents the weight matrix , represents multi-scale fusion features, is the predicted value; Step S43: Loss function calculation, using mean square error to calculate the difference between the predicted value and the actual value, the formula used is as follows: ; In the formula, , and is a natural number, is the number of time steps for prediction, is the number of sequences, Indicates the The sequence in The predicted value at time, Indicates The sequence in The true value of the moment, It represents the absolute difference between the predicted value and the true value. It means to accumulate the prediction errors of all prediction time steps and all sequences. is the loss function; The personalized care module uses an optimized Minimax optimization algorithm to optimize the improved multi-scale GNN model, specifically including the following steps: Step M1: Initialize the reference model, select a Meta model as the reference model, and train the Meta model using the reference domain weights. The number of training times is T and the batch size is b. Step M2: Proxy model training; Step M3: model training optimization; Step M4: Model application, applying the optimized improved multi-scale GNN model to the clinical pathway management module to optimize and adjust individual clinical care; Step M2 specifically includes the following steps: Step M21: Initialize the proxy model, select the TinyBERT model as the proxy model, and construct the minimum and maximum objective function; Step M22: Calculate excess losses, and calculate the excess losses of the proxy model and the reference model, that is, the loss of the proxy model minus the loss of the reference model; Step M23: Update domain weights and proxy models. Use Group DRO optimizer to update domain weights and Adafactor optimizer to update parameters of proxy models. Step M24: Repeat the steps and execute the above steps in a loop until T iterations are completed; Step M3 specifically includes the following steps: Step M31: Calculate the average domain weight, and calculate the average domain weight in the training of step M2; Step M32: resample the data, sample the data set based on the average domain weight, and create a training data distribution P(x); Step M33: training the large model, using the training data distribution P(x) to train the improved multi-scale GNN model; Step M34: Iterate the optimization, use the average domain weight obtained in the previous round of optimization as the reference domain weight for the next round, and repeat steps M1 to M3 until the domain weights converge.
