Iterative filling method-based spermatogenic disorder typing prediction method and device
Through the combination of iterative imputation method and predictive network model, the problem of missing data in the classification diagnosis of spermatogenic disorders is solved, the accuracy and efficiency of diagnosis are improved, and the applicability of the model is enhanced.
Patent Information
- Application Number
- CN202410835481.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology has problems of low accuracy and poor versatility in the classification and diagnosis of spermatogenic disorders. This is mainly due to the inconsistency of clinical testing items and incomplete data acquisition, which results in the inability to effectively fill in missing values, affecting the accuracy and application of the prediction model. sex.
A spermatogenic disorder classification prediction method based on iterative imputation method is adopted. Missing values are processed through data cleaning and iterative imputation method. Feature conversion and feature selection are performed in conjunction with the prediction network model to gradually refine the prediction results to ensure data integrity and accuracy.
It improves the accuracy and efficiency of diagnosis, enhances the versatility and prediction accuracy of the model, can effectively handle missing items in data acquisition under clinical conditions, and ensures the reliability of prediction results.
Smart Images

Figure CN118675732A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of biomedical engineering, and in particular to a method and device for predicting spermatogenesis disorder typing based on an iterative filling method. Background Art
[0002] Spermatogenesis disorder (spermatogenesis disorder) is a difficult and serious disease in male infertility. It is caused by the independent or interactive effects of environmental, genetic, endocrine, inflammatory, immune, lifestyle and other factors, which damage spermatogenic cells or spermatogenic microenvironment, leading to spermatogenic cell self-renewal, proliferation and differentiation disorders. The clinical manifestations are severe oligospermia, cryptozoospermia, and even non-obstructive azoospermia. Spermatogenesis disorder has a high clinical incidence and has become a major disease that seriously affects the reproductive health and population security of my country. However, the etiology of spermatogenesis disorder is complex, and it is necessary to establish a spermatogenesis disorder classification diagnosis and treatment system, which divides spermatogenesis disorder into three subtypes: 1) "focal type" with focal spermatogenesis in the testicular seminiferous tubules; 2) "arrest type" in which spermatogenic cells in the seminiferous tubules are blocked at a specific stage of spermatogenesis; 3) "exhaustion type" in which only supporting cells or occasional spermatogenic cells remain in the seminiferous tubules. Its classification is mainly based on intraoperative cytology and postoperative pathological examinations of microsperm retrieval surgery. Currently, there is a lack of preoperative clinical prediction models based on clinical data such as medical history characteristics, physical examination, ultrasound images, reproductive hormones, etc., which can be used to guide the clinical implementation of subsequent microsperm retrieval operations, judge the patient's reproductive prognosis, and develop new clinical diagnosis and treatment methods.
[0003] Since clinical prediction models involve many parameters, not only is there a situation where the clinical test items of patients with spermatogenesis disorders are not unified when they visit different hospitals, but also due to limited manpower and material resources, statisticians and data management personnel often find it difficult to fully obtain the clinical characteristic information of all patients. This will inevitably lead to the presence of some missing values in the patient's clinical characteristic data that cannot be filled, which will seriously affect the versatility of computer technology. At the same time, the impact of the missing key features on the accuracy of the prediction model cannot be ignored. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of low accuracy and poor versatility in the above-mentioned prior art and to provide a method and device for predicting spermatogenesis disorder typing based on iterative filling method.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] A method for predicting spermatogenesis disorder typing based on iterative filling method comprises the following steps:
[0007] S1: Obtain the patient's clinical data;
[0008] S2: Clean the clinical data to obtain missing values, and use iterative filling method to fill the missing values to obtain the data to be predicted;
[0009] S3: Input the data to be predicted into the prediction network model and output the classification prediction results.
[0010] Furthermore, the iterative filling method specifically includes the following steps:
[0011] S21: Initialize the missing value to the mean of the feature corresponding to the missing value in the clinical data;
[0012] S22: For each feature with missing values, set it as the response variable Y, take the other feature set X as the explanatory variables, use the explanatory variables to build a prediction model, update the missing values in the response variable, use the explanatory variables to build a prediction model, and update the missing values in the response variable. The expression is:
[0013]
[0014] In the formula, t is the number of iterations, is the predicted value of the missing value in the tth iteration, X is the explanatory variable, and f is the prediction model;
[0015] S23: Update the response variable Y miss Estimated value:
[0016]
[0017] In the formula, is the updated value of the missing value in the t+1 iteration;
[0018] S24: The iteration continues until the change rate threshold is met or the maximum number of iterations is reached.
[0019] Furthermore, the prediction process of the prediction network model includes:
[0020] Enhance the expressiveness of input features through feature transformation;
[0021] Use the learned weight coefficient mask to complete feature selection;
[0022] Generate the output vector of the current step;
[0023] The output vectors of all steps are accumulated and the classification prediction results are output through the fully connected layer transformation.
[0024] Furthermore, the feature conversion is specifically as follows: converting the feature into two serial parts, one part is a shared layer, and the other part is an independent layer.
[0025] Furthermore, the output of the shared layer and the output of the independent layer need to be segmented, and the segmentation results include the first part and the second part, which are defined as:
[0026] The first part: d1[i] is the feature conversion output, which means that at the i-th step, the output dimension is
[0027] The second part: d2[i] is the feature selection input, which means that at the i-th step, the output dimension is
[0028] Among them, i is the current iteration number, R is the real number field, B is the batch size, N d is the dimension of the output vector of step i, N a Represents the output vector dimension of the feature selection part of the i-th step.
[0029] Furthermore, after feature conversion, feature selection is completed through the learned mask matrix of weight coefficients. The calculation expression of the mask matrix of weight coefficients is:
[0030] M[i]=sparsemax(P[i-1]×h i (a[i-1]))
[0031] Where M[i] is the mask matrix generated in step i, sparsemax is the activation function, P[i-1] is the weighted scaling factor in step i-1, and h i is the feature transformation function of the i-th step, and a[i-1] is the feature activation vector generated in the previous step.
[0032] Furthermore, the calculation expression of the weighted scaling factor is:
[0033]
[0034] Where P[i] is the weighted scaling factor of the i-th step, ∏ is the cumulative product symbol, and γ is a constant. When γ>1, the feature is used again with a higher weight in the subsequent steps. At step 0, P[0]=1 B×D , M[j] is the mask matrix generated in the jth step.
[0035] Furthermore, the expression of the typing prediction result is:
[0036]
[0037] output=FC(d out )=W find d out
[0038] Where, d outis the cumulative sum of all step outputs, ∑ is the summation operation, N is the total number of steps, ReLU is the activation function, d1[i] is the feature conversion output of the i-th step, output is the final output of the model, that is, the typing prediction result, FC is the fully connected layer, and W find is the weight matrix of the fully connected layer.
[0039] Furthermore, clinical data included qualitative characteristics and numerical characteristics. The qualitative characteristics included idiopathicity, AZF c-region deletion, postpubertal mumps orchitis, AZF non-c-region deletion, and history of varicocele. The numerical characteristics included mean testicular volume, follicle-stimulating hormone, luteinizing hormone, inhibin B, and anti-Mullerian hormone.
[0040] The second aspect of the present invention is a device for predicting spermatogenesis disorders based on an iterative filling method, comprising a memory, a processor, and a program stored in the memory. When the processor executes the program, it implements any of the above methods for predicting spermatogenesis disorders based on an iterative filling method.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] 1) The present invention uses an iterative filling method to process missing data, and gradually refines the predicted values to approach the actual data distribution to predict missing values, supplement the completeness and accuracy of the data, and make up for the missing items in the data acquisition of clinical conditions, thereby ensuring the versatility of the model in the application process and guaranteeing the model prediction accuracy.
[0043] 2) The present invention uses mask generation and weighted scaling factors to optimize the expression and selection process of input features through multi-step feature selection and weight adjustment, and gradually accumulates to form the final prediction result. It has the characteristics of small computational complexity, low complexity, and good repeatability, and can effectively improve the accuracy and efficiency of diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flow chart of the present invention;
[0045] Figure 2 The improved network model feature selection structure diagram of the present invention;
[0046] Figure 3 This is a comparison chart of the diagnosis prediction results of the example of the present invention. DETAILED DESCRIPTION
[0047] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0048] Example 1
[0049] The present invention is a method and device for predicting spermatogenesis disorder typing based on iterative filling method, such as Figure 1 As shown, the method comprises the following steps:
[0050] S1: Obtain the patient's clinical data;
[0051] In actual testing, the patient's clinical data should include five qualitative characteristics (disease history): idiopathic, AZF c-region deletion (AZFc_deletion), postpubertal mumps orchitis, AZF non-c-region deletion (AZF_not_c_deletion), history of varicocele (Varicocele), and five numerical characteristics (physical examination + reproductive hormones): mean testicular volume (Mean_testicular_volume_mL), follicle-stimulating hormone (FSH_IU_L), luteinizing hormone (LH_IU_L), inhibin B (InhibinB_pg_ml), and anti-Mullerian hormone (AMH_ng_ml).
[0052] S2: Clean the clinical data to obtain missing values, and use iterative filling method to fill the missing values to obtain the data to be predicted; the specific steps are:
[0053] S21: Initialize the missing value to the mean of the feature corresponding to the missing value in the clinical data;
[0054] S22: For each feature with missing values, set it as the response variable Y, take the other feature set X as the explanatory variables, use the explanatory variables to build a prediction model, update the missing values in the response variable, use the explanatory variables to build a prediction model, and update the missing values in the response variable. The expression is:
[0055]
[0056] In the formula, t is the number of iterations, is the predicted value of the missing value in the tth iteration, X is the explanatory variable, and f is the prediction model;
[0057] S23: Update the response variable Y miss Estimated value:
[0058]
[0059] In the formula, is the updated value of the missing value in the t+1 iteration;
[0060] S24: The iteration continues until the change rate threshold is met or the maximum number of iterations is reached.
[0061] Change rate threshold: The change between two consecutive iterations is lower than the preset threshold ∈, that is:
[0062]
[0063] In the formula, ‖·‖ represents the Euclidean norm, ∈ is the preset convergence threshold;
[0064] Maximum number of iterations: Reach the preset maximum number of iterations T, that is, t≥T.
[0065] The missing numerical features that can be filled by the present invention specifically include, but are not limited to, follicle stimulating hormone (FSH, IU / L), luteinizing hormone (LH, IU / L), inhibin B (Inhibin B, pg / ml) and anti-Mullerian hormone (AMH, ng / ml). The clinical data completed by the iterative filling method are then input into the prediction network model for prediction operation. The model finally outputs the prediction results, including the classification of focal, block or exhaustion spermatogenesis disorders.
[0066] S3: Input the data to be predicted into the improved prediction network model and output the typing prediction results.
[0067] After the data of this embodiment is processed by the iterative filling method, a complete input feature is obtained, specifically, the patient to be diagnosed has no idiopathic, no AZFc area deletion, no post-pubertal mumps orchitis, no AZF area deletion (except c area deletion), no history of varicocele, an average testicular volume of 27.5ml, a follicle stimulating hormone content of 32.87IU / L, a luteinizing hormone content of 4.84IU / L, an inhibin B content of 26.05pg / ml, and an anti-Mullerian hormone content of 0.01ng / ml, all of which are input into the improved prediction network model. The network divides the entire prediction process into multiple steps, and each step first enhances the expression ability of the input feature through feature conversion, and then uses the learned weight coefficient mask (Mask) to complete feature selection, thereby generating the output vector of the current step, and then, all the output vectors generated in these steps are accumulated, and the final transformation is performed through a fully connected layer, thereby obtaining the final prediction output, completing the entire prediction process, and outputting the spermatogenesis disorder type of the patient to be diagnosed.
[0068] The clinical data of the patients to be diagnosed that have been cleaned by the iterative filling method are input into the prediction network model for training, and a network model between the characteristic information and the diagnosis of spermatogenesis disorder classification is established. The processed characteristic information is first transformed into two serial parts in the network. The first part is the shared layer, that is, in each step, this layer is shared, and the second layer is an independent layer, that is, a layer unique to each step, which needs to be trained separately.
[0069] The output of the shared layer and the output of the independent layer need to be segmented. The segmentation results include the first part and the second part, which are defined as:
[0070] The first part: d1[i] is the feature conversion output, which means that at the i-th step, the output dimension is
[0071] The second part: d2[i] is the feature selection input, which means that at the i-th step, the output dimension is
[0072] Among them, i is the current iteration number, R is the real number field, B is the batch size, N d is the dimension of the output vector of step i, N a Represents the output vector dimension of the feature selection part of the i-th step.
[0073] After feature conversion, feature selection is completed through the learned weight coefficient mask, such as Figure 2 As shown. This figure shows the process of using the embodiment data from various input features, such as five qualitative features (disease history) and five numerical features (physical examination + reproductive hormones), after being processed by the feature converter, using the weight coefficient mask to screen the relevant features to complete the feature selection, and finally giving the classification prediction of the spermatogenesis disorder of the patient to be diagnosed. This process mainly generates a mask for each step, denoted as Mask, and denoted as M[i]∈R B×D , keep the same matrix as the input feature, the input feature is recorded as f, M[i] is the mask matrix generated in step i, R B×D is the dimension of the mask matrix, R is the real number field, B is the batch size, and D is the feature dimension.
[0074] Among them, the weight coefficient mask (Mask) is expressed as:
[0075] M[i]=sparsemax(P[i-1]×h i (a[i-1]))
[0076] M[i] is the mask matrix generated in step i, sparsemax is the activation function, P[i-1] is the weighted scaling factor in step i-1, and h i is the feature transformation function of the i-th step, and a[i-1] is the feature activation vector generated in the previous step.
[0077] The weighted scaling factor P[i] in the weight coefficient mask is expressed as:
[0078]
[0079] P[i] is the weighted scaling factor of the i-th step, ∏ is the cumulative product symbol, and γ is a constant. Different values will have different effects. When γ>1, the feature can be used again with a higher weight in subsequent steps. At step 0, P[0]=1 B×D , M[j] is the mask matrix generated in the jth step.
[0080] To predict the final output of the network, first perform ReLU transformation on the output d[i] of each step of feature conversion, and finally sum the output of each step, and pass through the fully connected layer to obtain the final output. At this point, the classification prediction of spermatogenesis disorder of the patient to be diagnosed is realized, and the expression is:
[0081]
[0082] output=FC(d out )=W find d out
[0083] Where, d out is the cumulative sum of all step outputs, ∑ is the summation operation, N is the total number of steps, ReLU is the activation function, d1[i] is the feature conversion output of the i-th step, output is the final output of the model, that is, the typing prediction result, FC is the fully connected layer, and W find is the weight matrix of the fully connected layer.
[0084] After the above process, the patient's classification result was obtained as blocking type.
[0085] like Figure 3 The figure shows the recognition result of spermatogenesis disorder classification diagnosis. The clinical data of the patient to be diagnosed is input, and the classification result of spermatogenesis disorder is obtained. Compared with the true value, the algorithm of the improved prediction network model has better recognition accuracy.
[0086] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate array 8 (FPGA), application specific integrated circuit (ASIC), application specific standard product (ASSP), system on chip system (SOC), load programmable logic device (CPLD), etc.
[0087] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0088] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A method for predicting spermatogenesis disorder typing based on iterative filling method, characterized in that: The following steps are involved: S1: Obtain the patient's clinical data; S2: Clean the clinical data to obtain missing values, and use iterative filling method to fill the missing values to obtain the data to be predicted; S3: Input the data to be predicted into the prediction network model and output the classification prediction results.
2. The method for predicting spermatogenesis disorder typing based on iterative filling method according to claim 1, characterized in that: The iterative filling method specifically comprises the following steps: S21: Initialize the missing value to the mean of the feature corresponding to the missing value in the clinical data; S22: For each feature with missing values, set it as the response variable Y, take the other feature set X as the explanatory variables, use the explanatory variables to build a prediction model, update the missing values in the response variable, use the explanatory variables to build a prediction model, and update the missing values in the response variable. The expression is: In the formula, t is the number of iterations, is the predicted value of the missing value in the tth iteration, X is the explanatory variable, and f is the prediction model; S23: Update the response variable Y miss Estimated value: In the formula, is the updated value of the missing value in the t+1 iteration; S24: The iteration continues until the change rate threshold is met or the maximum number of iterations is reached.
3. The method for predicting spermatogenesis disorder typing based on iterative filling method according to claim 1, characterized in that: The prediction process of the prediction network model includes: Enhance the expressiveness of input features through feature transformation; Use the learned weight coefficient mask to complete feature selection; Generate the output vector of the current step; The output vectors of all steps are accumulated and the classification prediction results are output through the fully connected layer transformation.
4. The method for predicting spermatogenesis disorder typing based on iterative filling method according to claim 3, characterized in that: The feature conversion is specifically as follows: converting the feature into two serial parts, one part is a shared layer, and the other part is an independent layer.
5. The method for predicting spermatogenesis disorder typing based on iterative filling method according to claim 4, characterized in that: The output of the shared layer and the output of the independent layer need to be segmented, and the segmentation results include the first part and the second part, which are defined as: The first part: d1[i] is the feature conversion output, which means that at the i-th step, the output dimension is The second part: d2[i] is the feature selection input, which means that at the i-th step, the output dimension is Among them, i is the current iteration number, R is the real number field, B is the batch size, N d is the dimension of the output vector of step i, N a Represents the output vector dimension of the feature selection part of the i-th step.
6. The method for predicting spermatogenesis disorder typing based on iterative filling method according to claim 3, characterized in that: After the feature conversion, feature selection is completed through the learned mask matrix of weight coefficients, and the calculation expression of the mask matrix of weight coefficients is: M[i]=sparsemax(P[i-1]×h i (a[i-1])) Where M[i] is the mask matrix generated in step i, sparsemax is the activation function, P[i-1] is the weighted scaling factor in step i-1, and h i is the feature transformation function of the i-th step, and a[i-1] is the feature activation vector generated in the previous step.
7. The method for predicting spermatogenesis disorder typing based on iterative filling method according to claim 6, characterized in that: The calculation expression of the weighted scaling factor is: Where P[i] is the weighted scaling factor of the i-th step, ∏ is the cumulative product symbol, and γ is a constant. When γ>1, the feature is used again with a higher weight in the subsequent steps. At step 0, P[0]=1 B×D , M[j] is the mask matrix generated in the jth step.
8. The method for predicting spermatogenesis disorder typing based on iterative filling method according to claim 3, characterized in that: The expression of the typing prediction result is: output=FC(d out )=W find d out Where, d out is the cumulative sum of all step outputs, ∑ is the summation operation, N is the total number of steps, ReLU is the activation function, d1[i] is the feature conversion output of the i-th step, output is the final output of the model, that is, the typing prediction result, FC is the fully connected layer, and W find is the weight matrix of the fully connected layer.
9. The method for predicting spermatogenesis disorder typing based on iterative filling method according to claim 1, characterized in that: The clinical data included qualitative characteristics, including idiopathicity, AZF c-region deletion, postpubertal mumps orchitis, AZF non-c-region deletion, and history of varicocele, and numerical characteristics, including mean testicular volume, follicle-stimulating hormone, luteinizing hormone, inhibin B, and anti-Mullerian hormone.
10. A spermatogenesis disorder classification prediction device based on iterative filling method, comprising a memory, a processor, and a program stored in the memory, characterized in that: When the processor executes the program, it implements a method for predicting spermatogenesis disorder typing based on iterative filling method as described in any one of claims 1-9.
Citation Information
Patent Citations
Processing quality real-time prediction method and system in industrial finish machining process
CN115018162A
Missing value data filling method and device, equipment and storage medium
CN115905197A
Missing value filling method in marine organism detection system
CN117235662A
Deep learning-based cancer prognosis survival prediction method and device, and storage medium
WO2022268102A1
