An ai-assisted diagnosis and treatment method for congenital hydronephrosis disease of children
By establishing a pediatric congenital hydronephrosis category identification model and the XGBoost algorithm, combined with Word2Vec and SHAP value analysis, the problem of dynamic prediction and individualized management of pediatric congenital hydronephrosis by AI system was solved, realizing precise and personalized full-process assisted diagnosis and treatment.
Patent Information
- Application Number
- CN202611389524.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-27
AI Technical Summary
Existing AI systems lack the ability to dynamically predict natural outcomes, continuously evaluate the effects of surgical interventions, and provide individualized postoperative management in the diagnosis and treatment of congenital hydronephrosis in children. They also have insufficient data fusion and model generalization capabilities, resulting in poor clinical interpretability.
By establishing a pediatric congenital hydronephrosis category identification model, patient identification and disease feature extraction are performed. Deep semantic mining is carried out by combining Word2Vec and multi-head attention mechanism to construct high-dimensional feature vectors. The XGBoost algorithm is used to predict natural outcomes and surgical interventions, and SHAP value analysis is introduced to improve the interpretability of the model.
It achieves effective fusion of multi-source information, accurately predicts disease progression and surgical needs, provides objective diagnostic and treatment basis, reduces decision-making bias, improves model interpretability, supports full-process auxiliary diagnosis and treatment, and covers the entire cycle of disease management.
Smart Images

Figure CN123182973A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of treatment of congenital hydronephrosis, and more particularly to an AI-assisted diagnostic and treatment method for congenital hydronephrosis in children. Background Technology
[0002] In recent years, the application of artificial intelligence in the medical field has continued to expand, especially in disease prediction, risk assessment, and assisted diagnosis, demonstrating great potential. However, existing AI-assisted diagnostic systems still face many challenges in treating congenital birth defects in children, particularly hydronephrosis.
[0003] Currently, from the perspective of the diseases themselves, these diseases are not only numerous and pathologically complex, but their clinical manifestations often lack specificity, which can easily lead to misdiagnosis, missed diagnosis, or delayed treatment. From the perspective of the patient population, obtaining high-quality medical data for children is difficult, and relevant annotations are also very scarce, resulting in insufficient training data for existing AI models, making it difficult to support the models to achieve generalization and stable application in diverse cases.
[0004] Furthermore, current AI models primarily focus on modeling single-modal data, making it difficult to fully integrate multi-source information from clinical, imaging, and laboratory sources. This limits their ability to comprehensively depict disease progression pathways and treatment outcomes. In the diagnosis and treatment of complex structural birth defects, existing systems generally lack the ability to dynamically predict natural outcomes, continuously evaluate the effects of surgical interventions, and provide individualized postoperative management. Therefore, there is an urgent need to make breakthroughs in improving the data fusion capabilities, model generalization abilities, and clinical interpretability of AI systems, thereby supporting more accurate and intelligent diagnostic and treatment decisions. Summary of the Invention
[0005] This invention aims to provide an AI-assisted diagnosis and treatment method for congenital hydronephrosis in children, which solves the problems of existing technologies, such as lack of dynamic prediction ability for natural outcomes, continuous evaluation ability for surgical intervention effects, and postoperative individualized management ability, as well as poor data fusion ability, model generalization ability, and clinical interpretability of AI systems.
[0006] To achieve the above objectives, the present invention provides the following method:
[0007] This invention provides an AI-assisted diagnostic and treatment method for congenital hydronephrosis in children:
[0008] S1: Convert unstructured case information of pediatric patients into structured medical record information and establish a pediatric congenital hydronephrosis category identification model;
[0009] S2: Patient identification is performed using the congenital hydronephrosis category identification model to obtain congenital hydronephrosis samples. Based on the congenital hydronephrosis samples, a disease feature extraction model is established. Deep semantic mining and structured feature extraction are performed on the patient's medical record text to obtain the patient's key disease feature indicators.
[0010] S3: Based on the extraction of key disease characteristic indicators of the patients, construct a high-dimensional feature vector corresponding to each patient to predict the natural outcome and surgical intervention of congenital hydronephrosis in children.
[0011] Preferably, the steps of identifying patients using the congenital hydronephrosis category recognition model to obtain congenital hydronephrosis samples, establishing a disease feature extraction model based on the congenital hydronephrosis samples, and performing deep semantic mining and structured feature extraction on the patient's medical record text to obtain the patient's key disease feature indicators include: inputting a MySQL data table containing text fields related to surgical judgment; filtering and concatenating the table content in the MySQL data table, selecting fields related to the diagnosis of congenital hydronephrosis in children from each of the MySQL data tables as analysis samples; if a table contains multiple fields related to the diagnosis of congenital hydronephrosis in children, concatenating them into a new field as analysis samples. The analysis samples are preprocessed to obtain preprocessed text results. Based on the preprocessed text results, a Word2Vec word vector model is trained. Word vectors are trained using the Word2Vec word vector model to construct a word vector matrix and a keyword vector matrix. Using the word vector matrix and keyword vector matrix, a multi-head attention mechanism is used to calculate the semantic correlation between each word and the keyword set in the text and the keyword similarity vector of each paragraph. Deep semantic mining and structured feature extraction are performed on the patient's medical record text using the semantic correlation between each word and the keyword set in the text and the keyword similarity vector of each paragraph to obtain the patient's key disease feature indicators.
[0012] Preferably, the step of preprocessing the analysis sample to obtain the preprocessed text result includes: removing punctuation and non-Chinese / English characters from the analysis sample.
[0013] (Original text);
[0014] Where CleanedText represents the cleaned text, Regex is the regular expression, and Filter is the original text.
[0015] Jieba word segmentation and stop word removal
[0016] ;
[0017] Among them, TokenizedText represents the text result after word segmentation, that is, the set after splitting the original text into independent words, wᵢ represents the i-th word obtained after word segmentation, jiebacut refers to "Jieba word segmentation", CleanedText refers to the clean text after preprocessing above, which is the input for word segmentation operation, and StopWords represents stop words, that is, common words without actual semantics that need to be filtered.
[0018] Preferably, the step of training the Word2Vec word vector model based on the preprocessed text results includes:
[0019] Based on the preprocessed text results, the model parameters for training the Word2Vec word vector model are as follows:
[0020] vector_size=50, window=3, sg=0(CBOW), min_count=1, workers=8
[0021] Where vector_size represents the word vector dimension; window is the window size; sg represents the choice of training algorithm; CBOW represents the continuous bag-of-words model; min_count is the minimum word frequency threshold; and workers represents the number of threads for parallel training.
[0022] The output of training the Word2Vec word vector model is a word embedding matrix:
[0023]
[0024] Where E is the word embedding matrix obtained by training with Word2Vec, which is used to convert text words into low-dimensional vector representations; V is the vocabulary size, that is, the total number of all non-repeating words in the training corpus; d is the word vector dimension, and the model parameter is set to 50 here, which means that each word is mapped to a 50-dimensional vector space.
[0025] Preferably, the step of training word vectors using the Word2Vec word vector model to construct a word vector matrix and a keyword vector matrix includes:
[0026] The Word2Vec word vector model is used to analyze each text segment. Construct the word vector matrix:
[0027] ;
[0028] Where Si represents the word vector matrix constructed for the i-th text segment di, which is used to structurally represent the lexical information of the text in matrix form. e1, e2, ..., eTi represent the word vectors corresponding to the 1st, 2nd, ..., Tth words in the i-th text segment, respectively. These word vectors are obtained by training the Word2Vec model to capture the semantic features of the words. Ti represents the number of words in the i-th text segment di after word segmentation, that is, the length of the text.
[0029] Extract the set of keyword vectors defined in this table. And perform L2 normalization:
[0030] ;
[0031] in, This represents the set of keyword vectors after L2 normalization, and is the output of the normalization operation. "normalize" represents the normalization function, which refers to performing the L2 normalization operation to convert the input set of keyword vectors into a set of unit vectors. Representation matrix The dimensions and data types are defined, where R represents the real number field, indicating that the matrix elements are real numbers, M is the total number of keywords, and d is the dimension of the word vector.
[0032] Preferably, the step of calculating the semantic association between each word in the text and the set of keywords using the word vector matrix and keyword vector matrix via a multi-head attention mechanism includes: calculating the semantic association between each keyword and each word in the text using a multi-head attention mechanism.
[0033]
[0034] Among them, A i S represents the attention matrix calculated using a multi-head attention mechanism in the i-th text segment, used to characterize the semantic association between each word and the keyword set in the text; i This represents the word vector matrix corresponding to the i-th text segment; This represents the set matrix of keyword vectors after L2 normalization. The transpose of the matrix; Representing matrix A i Dimensions and data types.
[0035] Preferably, the step of calculating the keyword similarity vector for each text segment includes:
[0036] Perform softmax normalization on each column of the attention matrix (corresponding to a keyword):
[0037]
[0038] Then, calculate the weighted sum column by column to obtain the contextual representation of each keyword:
[0039]
[0040] Calculate the cosine similarity between the context vector and the original vector of each keyword, and use it as its feature score:
[0041]
[0042] Finally, a keyword similarity vector is generated for each text segment:
[0043]
[0044] In the above formula, α t,m This represents the normalized attention weight corresponding to the t-th word in the text after softmax normalization of the column containing the m-th keyword in the i-th segment of the text, which is used for subsequent weighted summation; For the correlation matrix A i Medium element α t,m Performing exponential operations is the numerator part of the softmax formula, used to highlight numerical differences; It is the sum of the exponential results of the relevance of all text words in the column containing the nth keyword. It is the denominator of the softmax formula and is used for normalization. s represents the contextual representation vector of the m-th keyword in the i-th text segment; i s is the word vector of the t-th word in the i-th text, and is the basic element for constructing the context representation; i,m It scores the features of the m-th keyword in the i-th text segment using the context vector C. i,m The cosine similarity between the keyword vector and the original keyword vector q^m is calculated to measure the semantic fit of the text to the keywords.
[0045] Preferably, the step of constructing a high-dimensional feature vector for each patient based on the extracted key disease feature indicators, and predicting the natural outcome and surgical intervention for congenital hydronephrosis in children, includes: constructing a high-dimensional feature vector for each patient based on the extracted key disease feature indicators; establishing a prediction model using the XGBoost algorithm to accurately determine the natural outcome path of the disease and the necessity of surgical intervention; the input features of the prediction model are: multi-type clinical feature information, which are uniformly numerically processed by label encoding and one-hot encoding, and the numerical data are input as floating-point type; the parameters of the prediction model are set as follows: objective function: set to multi:softmax, suitable for prediction of multiple types of surgical types; number of categories: the total number of categories of surgical labels automatically identified; boosting strategy: using the default gbtree; training set and test set partition: split at an 8:2 ratio; data loading method: using xgb.DMatrix to load, improving computational efficiency; introducing the SHAP value analysis method to rank the key features affecting the natural outcome and surgical judgment by importance, clarifying the main influencing factors, and improving the interpretability of the prediction model.
[0046] Preferably, the step of using the XGBoost algorithm to build a predictive model and accurately determine the natural course of the disease and the necessity of surgical intervention includes: the XGBoost model is an additive model composed of K regression trees, and the predictions of each tree for the sample are accumulated.
[0047]
[0048] in, : The predicted value of sample i; The k-th tree belongs to the function space F, where F is the set of all regression trees.
[0049] The training objective of XGBoost is to minimize the following objective function with a regularization term:
[0050]
[0051] in, The loss function is (e.g., softmax multi-class cross-entropy).
[0052] : Regularization term, controlling the complexity of the tree; T is the number of leaf nodes. The weights are those of the leaf nodes.
[0053] Preferably, the step of introducing the SHAP value analysis method to rank the key features affecting natural outcomes and surgical decisions by importance, identify the main influencing factors, and improve the interpretability of the prediction model includes: calculating the impact of each input feature on the model output using the SHAP method; for sample x, the SHAP value of the j-th feature is:
[0054]
[0055] Where N: the entire set of features; S is a subset of features, excluding j; This is the model output when only features from a subset of SSS are used;
[0056] The SHAP value satisfies the principles of additivity and fairness:
[0057] ;
[0058] The SHAP bar chart illustrates the top few key features that influence the predictions made by the prediction model.
[0059] The beneficial effects of this invention are reflected in the following aspects: By deeply mining multi-source features and integrating clinical information, this invention combines Word2Vec and Transformer technologies to perform semantic analysis and feature extraction on unstructured medical record texts, capturing the semantic associations of disease keywords and their contextual relationships with core indicators (such as natural outcome and surgical requirements), achieving effective fusion of multi-source information (clinical, imaging, and laboratory data), and overcoming the limitations of traditional single-modal modeling; it accurately predicts disease progression and surgical requirements, assisting clinical decision-making. Based on the XGBoost algorithm, a natural outcome and surgical decision-making model is constructed, which can quantify the prediction of disease development paths and the necessity of surgical intervention, providing doctors with objective evidence and reducing decision-making biases caused by subjective experience differences; it also improves model interpretability, enhances clinical trust in the model, and introduces the SHAP value analysis method to rank the importance of key features affecting prediction results (such as clinical symptoms and ultrasound indicators), clarifying the main influencing factors, making the decision-making logic of the AI model quantifiable and interpretable, solving the "black box" problem of traditional AI models, and making it more easily accepted by clinicians.
[0060] This invention relates to a full-process assisted diagnosis and treatment system, covering the entire cycle of disease management. It forms a closed loop from disease identification and feature extraction to natural outcome prediction and surgical judgment, supporting dynamic monitoring, intervention assessment, and postoperative management of congenital hydronephrosis in children. It provides full-cycle support for precision and personalized diagnosis and treatment, and helps improve patient prognosis. Attached Figure Description
[0061] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn to scale.
[0062] Figure 1 This is a flowchart illustrating an AI-assisted diagnosis and treatment method for congenital hydronephrosis in children, provided by an embodiment of the present invention.
[0063] Figure 2 This is a schematic diagram illustrating the operation of an AI-assisted diagnosis and treatment method for congenital hydronephrosis in children, provided in an embodiment of the present invention. Detailed Implementation
[0064] To enable those skilled in the art to better understand the present invention, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0065] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0066] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0067] Currently, from the perspective of the diseases themselves, these diseases are not only numerous and pathologically complex, but their clinical manifestations often lack specificity, which can easily lead to misdiagnosis, missed diagnosis, or delayed treatment. From the perspective of the patient population, obtaining high-quality medical data for children is difficult, and relevant annotations are also very scarce, resulting in insufficient training data for existing AI models, making it difficult to support the models to achieve generalization and stable application in diverse cases.
[0068] Furthermore, current AI models primarily focus on modeling single-modal data, making it difficult to fully integrate multi-source information from clinical, imaging, and laboratory sources. This limits their ability to comprehensively depict disease progression pathways and treatment outcomes. In the diagnosis and treatment of complex structural birth defects, existing systems generally lack the ability to dynamically predict natural outcomes, continuously evaluate the effects of surgical interventions, and provide individualized postoperative management. Therefore, there is an urgent need to make breakthroughs in improving the data fusion capabilities, model generalization abilities, and clinical interpretability of AI systems, thereby supporting more accurate and intelligent diagnostic and treatment decisions.
[0069] This invention aims to provide an AI-assisted diagnosis and treatment method for congenital hydronephrosis in children, which solves the problems of existing technologies, such as lack of dynamic prediction ability for natural outcomes, continuous evaluation ability for surgical intervention effects, and postoperative individualized management ability, as well as poor data fusion ability, model generalization ability, and clinical interpretability of AI systems.
[0070] like Figure 1 As shown in the figure, a specific embodiment of the present invention provides an AI-assisted diagnosis and treatment method for congenital hydronephrosis in children, including the following steps:
[0071] S1: Convert unstructured case information of pediatric patients into structured medical record information and establish a pediatric congenital hydronephrosis category identification model.
[0072] In this embodiment of the invention, a precise identification model for congenital hydronephrosis is established based on converting unstructured case information of pediatric patients into structured medical record information. Methodologically, the diagnostic experience and medical knowledge of clinical experts are integrated to construct a disease screening process that combines rule-driven and data-driven approaches. Specifically, regularized rule extraction and knowledge graph mapping are used to extract key clinical features, classifying pediatric hydronephrosis into three categories based on etiology: ureteropelvic junction obstruction (UPJO), ureterovesical junction obstruction / megaureterosis (UVJO / POM), and vesicoureteral reflux (VUR).
[0073] S2: Patient identification is performed using a pediatric congenital hydronephrosis category recognition model to obtain congenital hydronephrosis samples. Based on the congenital hydronephrosis samples, a disease feature extraction model is established. Deep semantic mining and structured feature extraction are performed on the patient's medical record text to obtain the patient's key disease feature indicators.
[0074] In this embodiment of the invention, a MySQL data table containing text fields related to surgical diagnosis is input; the table contents of the MySQL data table are filtered and concatenated, and fields related to the diagnosis of congenital hydronephrosis in children are selected as analysis samples; if a table contains multiple fields related to the diagnosis of congenital hydronephrosis in children, they are concatenated into a new field as the analysis sample; the analysis sample is preprocessed to obtain the preprocessed text result; punctuation and non-Chinese / English characters are removed from the analysis sample.
[0075] (Original text);
[0076] Where CleanedText represents the cleaned text, Regex is the regular expression, and Filter is the original text.
[0077] Jieba word segmentation and stop word removal
[0078] ;
[0079] Wherein, TokenizedText represents the text result after word segmentation, that is, the set of independent words after splitting the original text; wᵢ represents the i-th word obtained after word segmentation; jiebacut refers to "Jieba word segmentation"; CleanedText refers to the clean text after preprocessing, which is the input for word segmentation; StopWords represents stop words, that is, common words without actual semantics that need to be filtered; based on the preprocessed text result, the Word2Vec word vector model is trained; the model parameters of the Word2Vec word vector model trained based on the preprocessed text result are:
[0080] vector_size=50, window=3, sg=0(CBOW), min_count=1, workers=8
[0081] Where vector_size represents the word vector dimension; window is the window size; sg represents the choice of training algorithm; CBOW represents the continuous bag-of-words model; min_count is the minimum word frequency threshold; and workers represents the number of threads for parallel training.
[0082] The output of training the Word2Vec word vector model is a word embedding matrix:
[0083]
[0084] Where E is the word embedding matrix trained by Word2Vec, used to convert text vocabulary into low-dimensional vector representations; V is the vocabulary size, i.e., the total number of all unique words in the training corpus; d is the word vector dimension, where the model parameter is set to 50, indicating that each word is mapped to a 50-dimensional vector space; word vectors are trained using the Word2Vec word vector model to construct the word vector matrix and keyword vector matrix; and the Word2Vec word vector model is used to process each text segment. Construct the word vector matrix:
[0085] ;
[0086] Where Si represents the word vector matrix constructed for the i-th text segment di, which is used to represent the lexical information of the text in matrix form in a structured way. e1, e2, ..., eTi represent the word vectors corresponding to the 1st, 2nd, ..., Tth words in the i-th text segment, respectively. These word vectors are obtained by training the Word2Vec model to capture the semantic features of the words. Ti represents the number of words in the i-th text segment di after word segmentation, that is, the length of the text.
[0087] Extract the set of keyword vectors defined in this table. And perform L2 normalization:
[0088] ;
[0089] in, This represents the set of keyword vectors after L2 normalization, which is the output of the normalization operation. "normalize" represents the normalization function, which refers to performing the L2 normalization operation to convert the input set of keyword vectors into a set of unit vectors. Representation matrix The dimensions and data types are defined, where R represents the real number field, indicating that the matrix elements are real numbers, M is the total number of keywords, and d is the dimension of the word vectors. Using the word vector matrix and keyword vector matrix, a multi-head attention mechanism is used to calculate the semantic association between each word and the keyword set in the text, and the keyword similarity vector for each segment of the text. The multi-head attention mechanism is also used to calculate the semantic association between each keyword and each word in the text.
[0090]
[0091] Among them, A i S represents the attention matrix calculated using a multi-head attention mechanism in the i-th text segment, used to characterize the semantic association between each word and the keyword set in the text; i This represents the word vector matrix corresponding to the i-th text segment; This represents the set matrix of keyword vectors after L2 normalization. The transpose of the matrix; Representing matrix A i The dimensions and data types; softmax normalization is performed on each column of the attention matrix (corresponding to a keyword):
[0092]
[0093] Then, calculate the weighted sum column by column to obtain the contextual representation of each keyword:
[0094]
[0095] Calculate the cosine similarity between the context vector and the original vector of each keyword, and use it as its feature score:
[0096]
[0097] Finally, a keyword similarity vector is generated for each text segment:
[0098]
[0099] In the above formula, α t,m This represents the normalized attention weight corresponding to the t-th word in the text after softmax normalization of the column containing the m-th keyword in the i-th segment of the text, which is used for subsequent weighted summation; For the correlation matrix A i Medium element α t,m Performing exponential operations is the numerator part of the softmax formula, used to highlight numerical differences; It is the sum of the exponential results of the relevance of all text words in the column containing the nth keyword. It is the denominator of the softmax formula and is used for normalization. s represents the contextual representation vector of the m-th keyword in the i-th text segment; i s is the word vector of the t-th word in the i-th text, and is the basic element for constructing the context representation; i,m It scores the features of the m-th keyword in the i-th text segment using the context vector C. i,m The cosine similarity with the original keyword vector q^m is calculated to measure the semantic fit of the text to the keywords. The patient's medical record text is subjected to deep semantic mining and structured feature extraction by using the semantic correlation between each word in the text and the keyword set and the keyword similarity vector of each text segment to obtain the patient's key disease feature indicators.
[0100] S3: Based on the extraction of key disease characteristic indicators of patients, construct a high-dimensional feature vector corresponding to each patient to predict the natural outcome and surgical intervention of congenital hydronephrosis in children.
[0101] In this embodiment of the invention, the model parameters are set as follows: Objective function: set to multi:softmax, suitable for prediction of multiple surgical types; Number of classes (num_class): the total number of classes automatically identified for different surgical labels; Boosting strategy: using the default gbtree; Training set and test set partitioning: split at an 8:2 ratio; Data loading method: using xgb.DMatrix; The following evaluation metrics are used to assess model performance: Accuracy, Confusion Matrix, Classification Report (including Precision, Recall, and F1-score); To improve computational efficiency, based on extracting key disease feature indicators of patients, a high-dimensional feature vector is constructed for each patient; The XGBoost algorithm is used to build a prediction model to accurately determine the natural course of the disease and the necessity of surgical intervention; The XGBoost model is an additive model, composed of K regression trees, and the predictions of each tree are accumulated:
[0102]
[0103] in, : The predicted value of sample i; The k-th tree belongs to the function space F, where F is the set of all regression trees.
[0104] The training objective of XGBoost is to minimize the following objective function with a regularization term:
[0105]
[0106] in, The loss function is (e.g., softmax multi-class cross-entropy).
[0107] : Regularization term, controlling the complexity of the tree; T is the number of leaf nodes. The leaf node weights are used; the input features of the prediction model are: multi-type clinical feature information, which are uniformly numericalized through label encoding and one-hot encoding, and numerical data are input as floating-point type; the parameters of the prediction model are set as follows: objective function: set to multi:softmax, suitable for prediction of multiple surgical types; number of categories: the total number of categories of surgical labels automatically identified; boosting strategy: using the default gbtree; training set and test set partition: split at an 8:2 ratio; data loading method: using xgb.DMatrix to load, improving computational efficiency; the SHAP value analysis method is introduced to rank the importance of key features affecting natural outcomes and surgical judgment, clarify the main influencing factors, and improve the interpretability of the prediction model; the SHAP method is used to calculate the impact of each input feature on the model output; for sample x, the SHAP value of the j-th feature is:
[0108]
[0109] Where N: the entire set of features; S is a subset of features, excluding j; This is the model output when only features from a subset of SSS are used;
[0110] The SHAP value satisfies the principles of additivity and fairness:
[0111] ;
[0112] The SHAP bar chart illustrates the top few key features that influence the predictions of the forecasting model.
[0113] The beneficial effects of this invention are reflected in the following aspects: By deeply mining multi-source features and integrating clinical information, this invention combines Word2Vec and Transformer technologies to perform semantic analysis and feature extraction on unstructured medical record texts, capturing the semantic associations of disease keywords and their contextual relationships with core indicators (such as natural outcome and surgical requirements), achieving effective fusion of multi-source information (clinical, imaging, and laboratory data), and overcoming the limitations of traditional single-modal modeling; it accurately predicts disease progression and surgical requirements, assisting clinical decision-making. Based on the XGBoost algorithm, a natural outcome and surgical decision-making model is constructed, which can quantify the prediction of disease development paths and the necessity of surgical intervention, providing doctors with objective evidence and reducing decision-making biases caused by subjective experience differences; it also improves model interpretability, enhances clinical trust in the model, and introduces the SHAP value analysis method to rank the importance of key features affecting prediction results (such as clinical symptoms and ultrasound indicators), clarifying the main influencing factors, making the decision-making logic of the AI model quantifiable and interpretable, solving the "black box" problem of traditional AI models, and making it more easily accepted by clinicians.
[0114] This invention relates to a full-process assisted diagnosis and treatment system, covering the entire cycle of disease management. It forms a closed loop from disease identification and feature extraction to natural outcome prediction and surgical judgment, supporting dynamic monitoring, intervention assessment, and postoperative management of congenital hydronephrosis in children. It provides full-cycle support for precision and personalized diagnosis and treatment, and helps improve patient prognosis.
[0115] The above descriptions are merely embodiments of the present invention. Commonly known technical solutions or characteristics are not described in detail here. It should be noted that those skilled in the art can make various modifications and improvements without departing from the present invention, and these should also be considered within the scope of protection of the present invention. These modifications and improvements will not affect the effectiveness of the present invention or the practicality of the patent. The scope of protection claimed in this application should be determined by the content of its claims, and the specific embodiments described in the specification can be used to interpret the content of the claims.
Claims
1. An AI-assisted diagnosis and treatment method for congenital hydronephrosis in children, characterized in that, The method includes: S1: Convert unstructured case information of pediatric patients into structured medical record information and establish a pediatric congenital hydronephrosis category identification model; S2: Patient identification is performed using the congenital hydronephrosis category identification model to obtain congenital hydronephrosis samples. Based on the congenital hydronephrosis samples, a disease feature extraction model is established. Deep semantic mining and structured feature extraction are performed on the patient's medical record text to obtain the patient's key disease feature indicators. S3: Based on the extraction of key disease characteristic indicators of the patients, construct a high-dimensional feature vector corresponding to each patient to predict the natural outcome and surgical intervention of congenital hydronephrosis in children.
2. The AI-assisted diagnosis and treatment method for congenital hydronephrosis in children according to claim 1, characterized in that, The steps of identifying patients using the pediatric congenital hydronephrosis category recognition model to obtain congenital hydronephrosis samples, establishing a disease feature extraction model based on the congenital hydronephrosis samples, and performing deep semantic mining and structured feature extraction on the patient's medical record text to obtain the patient's key disease feature indicators include: Input a MySQL table containing text fields related to surgical decisions; The contents of the MySQL data tables were filtered and combined, and the fields related to the diagnosis of congenital hydronephrosis in children were selected as analysis samples. If a table contains multiple fields related to the diagnosis of congenital hydronephrosis in children, they are concatenated into a new field as the analysis sample. The analyzed sample is preprocessed to obtain the preprocessed text result; Based on the preprocessed text results, a Word2Vec word vector model is trained. Word vectors are trained using the Word2Vec word vector model to construct a word vector matrix and a keyword vector matrix; Using the word vector matrix and keyword vector matrix, a multi-head attention mechanism is used to calculate the semantic correlation between each word and keyword set in the text and the keyword similarity vector of each paragraph. By using the semantic correlation between each word and keyword set in the text and the keyword similarity vector of each paragraph, the patient's medical record text is subjected to deep semantic mining and structured feature extraction to obtain the patient's key disease feature indicators.
3. The AI-assisted diagnosis and treatment method for congenital hydronephrosis in children according to claim 2, characterized in that, The step of preprocessing the analysis sample to obtain the preprocessed text result includes: Punctuation marks and non-Chinese / English characters were removed from the analyzed samples: ; Where CleanedText represents the cleaned text, Regex is the regular expression, and Filter is the original text. Jieba word segmentation and stop word removal ; Among them, TokenizedText represents the text result after word segmentation, that is, the set after splitting the original text into independent words, wᵢ represents the i-th word obtained after word segmentation, jiebacut refers to "Jieba word segmentation", CleanedText refers to the clean text after preprocessing above, which is the input for word segmentation operation, and StopWords represents stop words, that is, common words without actual semantics that need to be filtered.
4. The AI-assisted diagnosis and treatment method for congenital hydronephrosis in children according to claim 2, characterized in that, The step of training the Word2Vec word vector model based on the preprocessed text results includes: Based on the preprocessed text results, the model parameters for training the Word2Vec word vector model are as follows: vector_size=50, window=3, CBOW=sg=0, min_count=1, workers=8 Where vector_size represents the word vector dimension; window is the window size; sg represents the choice of training algorithm; CBOW represents the continuous bag-of-words model; min_count is the minimum word frequency threshold; and workers represents the number of threads for parallel training. The output of training the Word2Vec word vector model is a word embedding matrix: Where E is the word embedding matrix obtained by training with Word2Vec, which is used to convert text words into low-dimensional vector representations; V is the vocabulary size, that is, the total number of all non-repeating words in the training corpus; d is the word vector dimension, and the model parameter is set to 50 here, which means that each word is mapped to a 50-dimensional vector space.
5. The AI-assisted diagnosis and treatment method for congenital hydronephrosis in children according to claim 2, characterized in that, The steps of training word vectors using the Word2Vec word vector model and constructing a word vector matrix and a keyword vector matrix include: The Word2Vec word vector model is used to analyze each text segment. Construct the word vector matrix: ; Where Si represents the word vector matrix constructed for the i-th text segment di, which is used to structurally represent the lexical information of the text in matrix form. e1, e2, ..., eTi represent the word vectors corresponding to the 1st, 2nd, ..., Tth words in the i-th text segment, respectively. These word vectors are obtained by training the Word2Vec model to capture the semantic features of the words. Ti represents the number of words in the i-th text segment di after word segmentation, that is, the length of the text. Extract the set of keyword vectors defined in this table. And perform L2 normalization: ; in, This represents the set of keyword vectors after L2 normalization, and is the output of the normalization operation. "normalize" represents the normalization function, which refers to performing the L2 normalization operation to convert the input set of keyword vectors into a set of unit vectors. Representation matrix The dimensions and data types are defined, where R represents the real number field, indicating that the matrix elements are real numbers, M is the total number of keywords, and d is the dimension of the word vector.
6. The AI-assisted diagnosis and treatment method for congenital hydronephrosis in children according to claim 2, characterized in that, The step of calculating the semantic association between each word and the set of keywords in the text using the word vector matrix and the keyword vector matrix and a multi-head attention mechanism includes: The semantic relevance of each keyword to each word in the text is calculated using a multi-head attention mechanism: Among them, A i S represents the attention matrix calculated using a multi-head attention mechanism in the i-th text segment, used to characterize the semantic association between each word and the keyword set in the text; i This represents the word vector matrix corresponding to the i-th text segment; This represents the set matrix of keyword vectors after L2 normalization. The transpose of the matrix; Representing matrix A i Dimensions and data types.
7. The AI-assisted diagnosis and treatment method for congenital hydronephrosis in children according to claim 6, characterized in that, The step of calculating the keyword similarity vector for each text segment includes: Softmax normalization is performed on each column of the attention matrix corresponding to a keyword: Then, calculate the weighted sum column by column to obtain the contextual representation of each keyword: Calculate the cosine similarity between the context vector and the original vector of each keyword, and use it as its feature score: Finally, a keyword similarity vector is generated for each text segment: In the above formula, α t,m This represents the normalized attention weight corresponding to the t-th word in the text after softmax normalization of the column containing the m-th keyword in the i-th segment of the text, which is used for subsequent weighted summation; For the correlation matrix A i Medium element α t,m Performing exponential operations is the numerator part of the softmax formula, used to highlight numerical differences; It is the sum of the exponential results of the relevance of all text words in the column containing the nth keyword. It is the denominator of the softmax formula and is used for normalization. s represents the contextual representation vector of the m-th keyword in the i-th text segment; i s is the word vector of the t-th word in the i-th text segment, and is the basic element for constructing the context representation; i,m It scores the features of the m-th keyword in the i-th text segment using the context vector C. i,m The cosine similarity between the keyword vector and the original keyword vector q^m is calculated to measure the semantic fit of the text to the keywords.
8. The AI-assisted diagnosis and treatment method for congenital hydronephrosis in children according to claim 1, characterized in that, The steps of constructing a high-dimensional feature vector for each patient based on the extracted key disease characteristic indicators, and predicting the natural outcome and surgical intervention of congenital hydronephrosis in children, include: Based on the extraction of key disease characteristic indicators of the patients, a high-dimensional feature vector is constructed for each patient; A predictive model was established using the XGBoost algorithm to accurately determine the natural course of the disease and the necessity of surgical intervention. The input features of the prediction model are: multi-type clinical feature information. The input features are processed by unified numericalization through label encoding and one-hot encoding. Numerical data is input as floating-point type. The parameters of the prediction model are set as follows: Objective function: set to multi:softmax, suitable for prediction of multiple surgical types; Number of categories: The total number of surgical labels that automatically identify different categories; Boosting strategy: Use the default gbtree; Training and test sets are split in an 8:2 ratio. Data loading method: Use xgb.DMatrix to load data, improving computational efficiency; The SHAP value analysis method is introduced to rank the key features affecting natural outcomes and surgical decisions by importance, identify the main influencing factors, and improve the interpretability of the prediction model.
9. The AI-assisted diagnosis and treatment method for congenital hydronephrosis in children according to claim 8, characterized in that, The steps of establishing a predictive model using the XGBoost algorithm to accurately determine the natural disease progression path and the necessity of surgical intervention include: The XGBoost model is an additive model, consisting of K regression trees, where the predictions from each tree are summed. in, : The predicted value of sample i; The k-th tree belongs to the function space F, where F is the set of all regression trees. The training objective of XGBoost is to minimize the following objective function with a regularization term: in, The loss function; : Regularization term, controlling the complexity of the tree; T is the number of leaf nodes. The weights are those of the leaf nodes.
10. The AI-assisted diagnosis and treatment method for congenital hydronephrosis in children according to claim 9, characterized in that, The steps of introducing the SHAP value analysis method to rank the key features affecting natural outcomes and surgical decisions, identify the main influencing factors, and improve the interpretability of the prediction model include: The SHAP method is used to calculate the impact of each input feature on the model output; For sample x, the SHAP value of the j-th feature is: Where N: the entire set of features; S is a subset of features, excluding j; This is the model output when only features from a subset of SSS are used; The SHAP value satisfies the principles of additivity and fairness: ; The SHAP bar chart illustrates the top few key features that influence the predictions made by the prediction model.
