Joint modeling method, evaluation method of the impact of indicators on the model and storage medium
Through the joint modeling method, the problem of description and evaluation of the cumulative change rate of longitudinal indicators in the survival data model is solved, the quantitative assessment of the impact of the mean value and cumulative change rate of longitudinal indicators is achieved, and the accuracy of the survival data model is improved.
Patent Information
- Application Number
- CN202410132483.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-01-30
AI Technical Summary
The existing technology cannot systematically describe the cumulative change rate of longitudinal indicators and its impact on the survival data model, and cannot effectively compare the importance of the longitudinal indicator mean and cumulative change rate to survival risk.
Using a joint modeling method based on longitudinal data and survival data, by determining the longitudinal indicator mean function and cumulative change rate function, the longitudinal data sub-model and survival data sub-model are constructed, and the EM algorithm is used to calculate the maximum likelihood estimate of the parameters. Predict multidimensional random effects and determine the covariance matrix structure of random errors.
It is possible to quantitatively and systematically characterize the cumulative change rate of longitudinal indicators in the survival data model, evaluate its impact on the survival data risk model, and compare the impact of the longitudinal indicator mean and cumulative change rate on the survival data model.
Smart Images

Figure CN118039144B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data analysis, and in particular to a joint modeling method, a method for judging the influence of indicators on a model, and a storage medium. Background Art
[0002] Cardiovascular disease is one of the diseases with the highest mortality rate in the world. According to the World Health Organization, the number of people who die from heart disease each year is as high as 17.9 million. Nearly 80% of patients die from sudden heart attack or stroke, and nearly 35% of them are under 70 years old. The traditional view is that by regularly observing the patient's blood pressure, blood sugar and other factors, the risk of disease onset can be monitored. In 2010, Professor Rothwell's team at Oxford University published three articles in the top medical journal "The Lancet" pointing out that simply observing the levels of factors such as blood pressure and blood sugar has great limitations. Patients with normal average blood pressure but high rate of change may have a higher risk of stroke or death than patients with high blood pressure but relatively stable blood pressure. This conclusion has attracted great attention and controversy in the cardiovascular community. If the conclusion is established, it may change people's traditional understanding of cardiovascular disease. However, this conclusion is obtained from medical mechanism research, and there is no large amount of statistical data analysis to support its point of view. There is currently no statistical model, theory or algorithm available to analyze the impact of blood pressure change rate on the risk of stroke or death, and how to compare the two factors of blood pressure level and blood pressure change rate for risk prediction.
[0003] Although the above problems originate from medicine, they are also common in other fields. For example, in financial technology, people tend to pay more attention to the rate of change of stock prices rather than the relationship between stock prices and certain risk events; in industrial manufacturing, the impact of changes in pressure during the production process of a certain product on the life of the product, etc. These problems can all be attributed to the survival data modeling problem with the independent variable having a longitudinal indicator change rate.
[0004] When the longitudinal indicator process shows changes and it is necessary to judge the impact of the change rate of the longitudinal indicator on the statistical inference of the survival data risk model, the commonly used techniques in the prior art include: a) when the longitudinal indicator process has a change point, when the location and number of the change point are unknown, the problem of the longitudinal indicator having a change point can be judged by parametric and non-parametric algorithms; b) simply taking each individual repeated observation value, that is, the sample standard deviation, coefficient of variation or continuous coefficient of variation of the longitudinal data as the independent variable of the survival data model; c) taking the mean function of the longitudinal indicator at the current time t or the first-order derivative of the function at time t as the independent variable of the survival data model; d) taking the variance of the random error of the longitudinal data or the logarithm of the variance as a random effect, and adding it to the survival data model in the form of a fragility factor for analysis.
[0005] The above technology a) can describe the local changes of longitudinal indicators, but cannot judge the global dynamic change rate of longitudinal indicators; technology b) is a commonly used method by medical researchers. Its advantages are simple and easy to operate, but these sample-based measurements are not sufficient and stable in describing the change rate. Especially when the number of repeated observations is limited, the parameter estimation of the survival data model will produce serious deviations, resulting in incorrect analysis results; the algorithm of technology c) takes into account the systematic impact of longitudinal indicators on the survival model, but only uses the values of the longitudinal indicators and their first-order derivatives at the current time point t, and does not take into account the cumulative change rate of the longitudinal indicators until time t; the algorithm of technology d) introduces the measurement error variance of longitudinal data into the survival model, or treats the logarithm of its error variance as a random effect (i.e., fragility factor) in the survival model. This algorithm cannot systematically describe the cumulative change rate of longitudinal indicators and lacks its theoretical basis. Therefore, research in this field urgently needs a statistical algorithm that can not only systematically and dynamically describe the cumulative change rate of longitudinal indicators, but also compare the importance of the two different factors, the mean of longitudinal indicators and the cumulative change rate of longitudinal indicators, on the survival risk in the survival model. Summary of the invention
[0006] The embodiments of the present invention aim to provide a joint modeling method, a method for judging the impact of indicators on the model, and a storage medium, so as to solve the problems in the prior art that the survival data model cannot systematically describe the longitudinal indicator change rate and does not judge the impact of the cumulative change rate of the longitudinal indicator on the survival data model.
[0007] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:
[0008] According to one aspect of the present invention, a method for joint modeling based on longitudinal data and survival data is provided, the method comprising:
[0009] Determine an expression of a longitudinal indicator mean function and an expression of a longitudinal indicator cumulative change rate function, wherein the longitudinal indicator mean in the longitudinal indicator mean function depends on the first benchmark independent variable in parameter form and depends on a smooth function based on multidimensional random effects in time form, and the longitudinal indicator cumulative change rate in the longitudinal indicator cumulative change rate function is described as a power root of the varicose measure of the longitudinal indicator mean function;
[0010] Constructing a longitudinal data sub-model, wherein the longitudinal observation data in the longitudinal data sub-model depends on at least the mean value and random error of the longitudinal indicator;
[0011] Constructing a survival data sub-model, wherein the survival risk function in the survival data sub-model depends on at least the mean value of the longitudinal indicator and the cumulative change rate of the longitudinal indicator;
[0012] Determining a covariance matrix structure of the random error based on a computational model selection criterion;
[0013] The maximum likelihood estimation value of each parameter in the longitudinal data submodel and the survival data submodel is calculated using the EM algorithm, and the multidimensional random effect is predicted to obtain an estimate of the smooth function.
[0014] Optionally, the expression of the vertical index cumulative change rate function is:
[0015]
[0016] or,
[0017]
[0018] Among them, m i (s) is the longitudinal index mean function of the i-th individual at time s, m″ i (s) is m i The second derivative of (s), I i (t) represents m i (t) is the cumulative change rate of the longitudinal index in the time period [t0, t], is the weight function about parameter σ2, and the smaller the distance between s and t, The greater the weight.
[0019] Optionally, the expression of the longitudinal index mean function is:
[0020]
[0021] in, is the first benchmark independent variable vector of the i-th individual, and β is The corresponding regression coefficient, f i (t) is the smooth function of the ith individual, q represents the dimension of the random effect, ξ k is the fixed effect parameter of the kth dimension, b ik represents the random effect parameter of the kth dimension of the i-th individual, B k (t) represents the B-spline basis function corresponding to the k-th dimension.
[0022] Optionally, the longitudinal data sub-model is:
[0023]
[0024] Among them, Y ij is the i-th individual at the j-th time point t ij The observed values of the random variable Y, j = 1, 2, ..., n i , n i It means that the i-th individual has a survival time T iThe total number of previous repeated observations of Y, w ij is the external independent variable corresponding to the i-th individual at the j-th time point, η is w ij The corresponding unknown parameters, ∈ ij is the random error of the ith individual at the jth time point.
[0025] Optionally, the survival data sub-model is:
[0026]
[0027] or,
[0028]
[0029] Among them, λ0(t) is the benchmark risk function, is the second benchmark independent variable vector of the i-th individual, and γ is The corresponding co-parameter, α1 is the mean value m of the longitudinal index at the current time point t i (t), α2 is the co-parameter of m before the current time point t i (t) is the co-parameter of the cumulative rate of change; is the weight function about parameter σ1, is the weight function about parameter σ2, so that the smaller the distance between s and t, and The greater the weight.
[0030] Optionally, the method comprises:
[0031] One of the two survival data sub-models was selected as the survival data sub-model for data analysis based on the computational model selection criteria.
[0032] Optionally, the random error has a mean of 0 and a covariance matrix of ∑ i For the multivariate normal distribution, the covariance matrix ∑ i Modeling is based on the following formula:
[0033]
[0034] Among them, T i is a lower triangular matrix with 1 on the diagonal, and D i is a diagonal matrix with positive diagonal entries, T i The lower triangular element of ijk (1≤k <j≤n i ), D i The diagonal element of φ ijk Yes ij Y ikThe autoregressive coefficients of (k=1, 2, ..., j-1), is the innovation variance.
[0035] Optionally, the method further comprises:
[0036] For the φ ijk and stated Modeling is based on the following formula:
[0037]
[0038] Among them, a ijk and c ij are known independent variables, and τ and ζ are model parameters.
[0039] According to another aspect of the present invention, a method for judging the influence of an indicator on a model is provided, the method comprising:
[0040] Using any of the above joint modeling methods based on longitudinal data and survival data to obtain a survival data sub-model;
[0041] Assuming that the regression coefficient corresponding to the cumulative change rate of the longitudinal indicator in the survival data sub-model is 0, determining whether the cumulative change rate of the longitudinal indicator affects the survival risk function based on the likelihood ratio criterion or the Z test statistic; and / or,
[0042] Assuming that the regression coefficient corresponding to the cumulative change rate of the longitudinal indicator in the survival data submodel is greater than the regression coefficient corresponding to the mean of the longitudinal indicator, determine based on the likelihood ratio criterion or the Z test statistic whether the impact of the cumulative change rate of the longitudinal indicator on the survival risk function is greater than the impact of the mean of the longitudinal indicator on the survival risk function.
[0043] According to yet another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of any one of the above methods.
[0044] The beneficial effect of the embodiment of the present invention is as follows: Different from the prior art, the embodiment of the present invention provides a method for joint modeling based on longitudinal data and survival data, firstly, determining the expression of the longitudinal indicator mean function and the expression of the longitudinal indicator cumulative change rate function; then constructing the longitudinal data submodel and the survival data submodel based on the longitudinal indicator mean function and the longitudinal indicator cumulative change rate function respectively; finally, determining the covariance matrix structure of the random error in the longitudinal data submodel based on the calculation model selection criterion, using the EM algorithm to calculate the maximum likelihood estimate of each parameter in the longitudinal data submodel and the survival data submodel, and predicting the multidimensional random effects in the longitudinal indicator mean function, and obtaining the estimate of the smooth function in the longitudinal indicator mean function. The method of the present invention can not only quantitatively and systematically characterize the longitudinal indicator cumulative change rate in the survival data model, but also judge the influence of the longitudinal indicator cumulative change rate on the survival data risk model and compare the influence of the longitudinal indicator mean and the longitudinal indicator change rate on the survival data model. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0046] Figure 1 It is a flowchart of a joint modeling method based on longitudinal data and survival data provided by an embodiment of the present invention;
[0047] Figure 2 It is a schematic diagram of the blood pressure value fitting trajectory curves of 6 random patients and the cumulative change rate curve of the blood pressure values within the observation time period provided by an embodiment of the present invention;
[0048] Figure 3 It is a flowchart of a method for judging the influence of an indicator on a model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0051] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0052] For the convenience of expression, some mathematical symbols appearing in this patent are introduced below: Assume that there are N individuals, record and C i are the occurrence time and deletion time of the target event of the i-th individual (i=1, 2, ..., N). Due to deletion, the data that can actually be observed is and δ i =I{T i ≤C i}, where I{·} is the indicative function. Assume that the longitudinal data of a key indicator observed by the i-th individual is where Y ij is the i-th individual at the j-th time point t ij (t ij ≤T i ) is the observed value of the random variable Y on (j = 1, 2, ..., n i ), n i It means that the i-th individual has a survival time T i The total number of repeated observations of Y before. Obviously, the observation of Y at any point in time will have errors, and the true but unknown observation value is m i (t) (i.e., the mean of the longitudinal indicators described later); assuming m i (t) is a smooth function of t, and assumes that the censored events are related to the event time Independent of each other.
[0053] Embodiment 1
[0054] See also Figure 1 , is a flow chart of a joint modeling method based on longitudinal data and survival data provided by an embodiment of the present invention, the method comprising:
[0055] Step S101, determining the expression of the longitudinal index mean function and the expression of the longitudinal index cumulative change rate function.
[0056] In some embodiments, the longitudinal indicator mean depends on the baseline independent variable in a parameter form and depends on a smooth function based on multidimensional random effects in a time form. Specifically, the longitudinal indicator mean function is the following parameter regression model:
[0057]
[0058] in, is the first reference independent variable vector of the i-th individual (for example, the age, gender, etc. of the i-th individual), β is The corresponding regression coefficient, f i (t) is the smooth function of the i-th individual, which reflects the trajectory of the longitudinal data over time, and different individuals have different trajectories.
[0059] In some embodiments, B-spline regression with multidimensional random effects is used to estimate f i (t), as follows:
[0060]
[0061] Where q represents the dimension of the random effect, ξ k is the fixed effect parameter of the kth dimension, b ik represents the random effect parameter of the kth dimension of the i-th individual, B k (t) represents the B-spline basis function corresponding to the kth dimension. Specifically, is a q-dimensional cubic B-spline basis function with a set of fixed knots.
[0062] In some embodiments, the fixed effect parameter of the q dimension is expressed as ξ=(ξ1, ..., ξ q ) T , the q-dimensional random effect parameter of the i-th individual is expressed as b i =(b i1 , …, b iq ) T , usually assuming b i ~N q (0, D), that is, b i It obeys a multivariate normal distribution with mean 0 and covariance matrix D. Where ξ and D are unknown parameters.
[0063] In some embodiments, m is measured by the power root of the longitudinal index mean function variability measure i (t), specifically, the expression of the cumulative change rate function of the longitudinal index is:
[0064]
[0065] Among them, m i (s) is the longitudinal index mean function of the i-th individual at time s, m″ i (s) is m i The second derivative of (s), I i (t) represents m i(t) is the cumulative change rate of the longitudinal indicator in the time period [t0, t]. The reason for taking the power root instead of the integral itself is that when discussing the impact on survival risk, the cumulative change rate measure is similar to the mean m i (t) should be calibrated on the same scale. Obviously, I i (t) changes with time t, thus reflecting the dynamics of the cumulative rate of change on [t0, t]; I i (t) can be like the longitudinal index mean function m i (t), it is introduced as an independent variable into the Cox proportional hazard model of survival data, so that its corresponding regression coefficient can be used to judge the mean value of the longitudinal index m i (t) and the cumulative change rate of longitudinal indicators I i (t) At the current moment t, the survival risk function λ i (t), can also be used to compare m i (t) and I i (t) vs. i The effect size of (t) is described in detail below.
[0066] Figure 2 The power root I of the varicose metric is given i (t) is an intuitive example of using the smooth function curve to judge the rate of change. The above data comes from a clinical trial of cardiovascular disease in the elderly aged 65-74 years old conducted by the British Medical Research Association. Figure 2 The left figure shows the blood pressure (systolic pressure) fitting trajectory curves of six randomly selected patients. For statistical convenience, the blood pressure values are divided by 30; Figure 2 The right figure shows the cumulative change rate I during the observation period i It can be seen that the cumulative change rate of patients with stable blood pressure levels, such as patients No. 129 and No. 2295, is also small; on the contrary, the cumulative change rate of blood pressure of patients with large changes in blood pressure levels, such as patients No. 3800 and No. 106, is i (t) is also relatively large; in addition, I i (t) also revealed m i (t) where the cumulative rate of change is larger and where it begins to flatten out; therefore, formula (3) is able to systematically and dynamically judge the smooth function m i (t) A reasonable measure of the cumulative rate of change.
[0067] Step S102, constructing a longitudinal data sub-model, in which the longitudinal observation data depends on the longitudinal indicator mean and random error.
[0068] In some practical problems, the observed value Y ij =Y i (t ij) except for the intrinsic reference variable x i In addition to the influence of external factors or independent variables, it may also be interfered by external factors or independent variables. For example, when a patient measures blood pressure, the results measured by a doctor or a nurse are often different. The reason is that some patients' psychological fear of doctors often leads to a sharp increase in blood pressure, which is called the "white coat phenomenon" in medicine. Secondly, there will be differences in blood pressure values of the elderly in different seasons. Therefore, the following longitudinal data model is considered in the present invention:
[0069]
[0070] Among them, Y ij is the i-th individual at the j-th time point t ij The observed values of the random variable Y, j = 1, 2, ..., n i , n i It means that the i-th individual has a survival time T i The total number of previous repeated observations of Y, is the external independent variable vector corresponding to the i-th individual at the j-th time point, η is The corresponding parameters, ∈ ij is the random error of the ith individual at the jth time point.
[0071] The random error of the i-th individual at each measurement is expressed as assumed That is ∈ i The mean is 0 and the covariance matrix is ∑ i The multivariate normal distribution of . Here ∑ i is unknown i ×n i -dimensional positive definite covariance matrix.
[0072] The covariance structures commonly used in longitudinal data analysis are independent covariance structures, uniform variance structures, and first-order autoregressive AR(1) structures. The advantages of this parameterized covariance structure are its simple structure and the ability to make the matrix ∑1,...,∑ N The estimation of ∑ is converted into the estimation of a few parameters. However, once the assumption of this parameter structure is wrong, it will lead to biased or even serious errors in the parameter estimation of the survival data model. Therefore, the present invention proposes to i Also modeled, determined by data∑ i What kind of structure it is and its impact on the statistical inference of survival data models.
[0073] Specifically, based on the MCD (Minimum Covariance Determinant) model, the covariance matrix ∑ i Modeling is based on the following formula:
[0074]
[0075] Among them, T i is a lower triangular matrix with 1 on the diagonal, and D i is a diagonal matrix with positive diagonal entries, T i The lower triangular element of ijk (1≤k <j≤n i ), D i The diagonal element of φ ijk Yes ij Y ik The autoregressive coefficients of (k=1, 2, ..., j-1), is the innovation variance.
[0076] Furthermore, for φ ijk and Modeling is based on the following formula:
[0077]
[0078] Among them, a ijk and c ij are known independent variables, and τ and ζ are model parameters.
[0079] In the embodiment of the present invention, a method for modeling the covariance matrix between individual repeated observations in longitudinal data is proposed, so that the covariance structure fits the data, and does not produce the problem that when a linear mixed model or a generalized linear model is used in the prior art (usually assuming that the observation errors are mutually independent and identically distributed), if the assumption is wrong, it will cause a significant negative impact on the parameter estimation of the survival data model (for example, the parameter estimation is biased, etc.). This method is a data-driven method, and the covariance structure of its random errors can be given through the longitudinal data itself.
[0080] In summary, in the longitudinal data submodel (4), the known information is Y ij , x i and ij , the unknown parameters are β, η and ∑ i And the unknown function is f i (t).
[0081] Step S103, constructing a survival data sub-model, in which the survival risk function depends on the mean of the longitudinal index and the cumulative change rate of the longitudinal index.
[0082] Assume that the target event occurs at The risk function depends on the mean m of the longitudinal indicator. i (t), and also depends on m before time t i(t) Cumulative change rate, consider the generalized Cox risk model for the following survival data:
[0083]
[0084] where λ0(t) is the baseline risk function, is the second baseline independent variable vector of the i-th individual, γ is the corresponding co-parameter, α1 is the co-parameter of the longitudinal index mean m i (t) at the current time point t, and α2 is the co-parameter of the cumulative change rate of m i (t) before the current time point t.
[0085] In addition, the formula for calculating the hazard rate of the target event occurring at time t is:
[0086]
[0087] In the survival data sub-model (7), the survival risk function λ i (t) only depends on the longitudinal index mean m i (t) at the current time point t, and the cumulative change rate of m i (t) before time t. In many practical problems, it may not be reasonable to only consider the longitudinal index mean m i (t) at the current time point t. For example, in medical research on heart diseases, not only the blood pressure value at the current time point needs to be considered, but also the average blood pressure over a past period of time, as well as the change rate of blood pressure during this period; another example is the evaluation of the efficacy of a certain drug, which often refers to the impact of the medication situation in the past period on the current health status. Naturally, the historical values m i (s) (s < t) and their cumulative change rates far from the current time point t have a small impact on the survival risk function λ i (t); on the contrary, m i (s) (s < t) and their cumulative change rates closer to the current time point t have a large impact on λ i (t). To reflect this phenomenon in the model, the following risk model for weighting historical longitudinal indicators and their cumulative change rates is proposed:
[0088]
[0089] In the survival data sub-model (9), is the weight function for the parameter σ1, is the weight function for the parameter σ2, where the smaller the distance between s and t, and have larger weights. The integral term in equation (3) that describes the cumulative change rate of m i (t) Transformed into
[0090] In some embodiments, let u = ts, and The functional form of can be taken as:
[0091]
[0092] Among them, φ(·) and Φ(·) are the density function and cumulative distribution function of the standard normal distribution N(0,1), respectively. The denominator term plays a regularization role, that is, In fact, σ (u; [0, t-t0]) is the interval [0, t-t0] with mean 0 and variance σ 2 The density function of the truncated normal distribution. When s is close to t, ω σ (ts) gives a larger weight, when s is far away from t, ω σ (ts) is given a smaller weight, thus reflecting the mean value m of the longitudinal index closer to time t. i (s) and the cumulative change rate of the longitudinal index may have a greater impact on the survival risk function at time t, and vice versa. The parameter σ controls the weight ω σ (u) decreases at a rate (u>0), when σ is large, the weight ω σ (u) decreases gently with the increase of time distance u, so model (9) can cover the longitudinal data information and change rate information over a long period of time in the past, and can reflect the influence of time on λ i (t) The effect of the action size. In particular, when σ is very large, ω σ (u) is approximately equal to the weight function 1 / u, and when σ is very small, ω σ (u) can only include the information of the longitudinal indicators at the current time t, which has little to do with historical information. In model (9), σ1 and σ2 are unknown parameters and need to be estimated based on longitudinal data and survival data. Therefore, model (9) provides a more flexible survival risk model that can truly reflect longitudinal historical information.
[0093] Approximate f using B-splines i (t), the description m in models (7) and (9) i (t) Integral term of the cumulative rate of change and It can be expressed as A quadratic form of or equal Where K(t0, t) depends only on the sample basis function The matrix of , then the model (7) or (9) is transformed into
[0094]
[0095] where B(t) = (B1(t), ..., B q (t)) T , that is, the estimation problem with nonparametric regression function and cumulative rate of change in model (7) or (9) is transformed into the parameter estimation problem in model (11).
[0096] Step S104, determining the covariance matrix structure of the random error based on the calculation model selection criterion.
[0097] When the covariance matrix is modeled by the MCD model, the covariance matrix ∑ i can be estimated directly, but the covariate a in the model ijk and c ij The dimension of needs to be determined based on the computational model selection criteria. Generally, the covariate a ijk and c ij can be set as a polynomial in time, and the degree of the polynomial is related to the covariate a ijk and c ij Determine the covariate a ijk and c ij The dimension of the covariate a ijk and c ij The polynomial of is used to determine the covariance matrix structure of the random error.
[0098] In some embodiments, the computational model selection criterion is the AIC criterion (Akaike information criterion, also known as Akaike information criterion) or the BIC criterion (BIC criterion, also known as Bayesian information criterion).
[0099] Similarly, it is also used to select one of the models (7) and (9) as the survival data sub-model for data analysis based on the above-mentioned computational model selection criteria.
[0100] Step S105, using the EM algorithm to calculate the maximum likelihood estimates of the parameters in the longitudinal data sub-model and the survival data sub-model, and predicting the multi-dimensional random effects to obtain an estimate of the smooth function.
[0101] The maximum likelihood estimation of the parameters is obtained by the EM (Expectation-Maximum) algorithm, wherein the parameters include the first reference independent variable vector The regression coefficient β, the external independent variable The corresponding parameter η, random error ∈ iThe corresponding covariance matrix ∑ i , the second base independent variable vector The corresponding co-parameter γ, the mean value of the longitudinal index at the current time point t m i (t) co-parameter α1, m before the current time point t i The co-parameter of the cumulative rate of change of (t) is α2, the fixed effect parameter of the q dimension is ξ, and the random effect parameter of the q dimension is b i The corresponding covariance matrix D. Among them, the random effect parameter b i With random error ∈ i Mutually independent, the first reference independent variable vector and the second basis independent variable vector They can be the same or different. Since B-spline and EM algorithm are theoretically guaranteed and are also commonly used function approximation and optimization methods in statistics, this is feasible in theory and technology.
[0102] In some embodiments, the best linear unbiased prediction (BLUP) is performed on the multidimensional random effects to obtain a non-parametric regression function jf i (t) is estimated.
[0103] The method for joint modeling based on longitudinal data and survival data provided by the embodiment of the present invention first determines the expression of the longitudinal indicator mean function and the expression of the longitudinal indicator cumulative change rate function; then, based on the longitudinal indicator mean function and the longitudinal indicator cumulative change rate function, the longitudinal data submodel and the survival data submodel are respectively constructed; finally, based on the calculation model selection criterion, the covariance matrix structure of the random error in the longitudinal data submodel is determined, and the maximum likelihood estimation value of each parameter in the longitudinal data submodel and the survival data submodel is calculated by the EM algorithm, and the multidimensional random effect in the longitudinal indicator mean function is predicted to obtain the estimation of the smooth function in the longitudinal indicator mean function. By adopting the method of the present invention, the longitudinal indicator cumulative change rate can be quantitatively and systematically characterized in the survival data model, so that the survival data submodel is more in line with the actual situation.
[0104] Embodiment 2
[0105] According to an embodiment of the present invention, a method for judging the influence of an indicator on a model is provided, such as Figure 3 FIG. 1 is a flow chart of a method for judging the influence of an indicator on a model provided by an embodiment of the present invention, wherein the method comprises:
[0106] Step S301: adopt the joint modeling method based on longitudinal data and survival data described in any one of the first embodiments to obtain a survival data sub-model.
[0107] Step S302, assuming that the regression coefficient corresponding to the cumulative change rate of the longitudinal indicator in the survival data sub-model is 0, determine whether the cumulative change rate of the longitudinal indicator affects the survival risk function based on the likelihood ratio criterion or the Z-test statistic; and / or, assuming that the regression coefficient corresponding to the cumulative change rate of the longitudinal indicator in the survival data sub-model is greater than the regression coefficient corresponding to the mean of the longitudinal indicator, determine whether the influence of the cumulative change rate of the longitudinal indicator on the survival risk function is greater than the influence of the mean of the longitudinal indicator on the survival risk function based on the likelihood ratio criterion or the Z-test statistic.
[0108] Among them, the likelihood ratio criterion is to divide the likelihood function value when the hypothesis is true by the likelihood function value when the parameter is unrestricted; the Z test statistic is to divide the estimated value of the parameter by the standard deviation of the parameter and then take the absolute value.
[0109] An embodiment of the present invention provides a method for judging the influence of an indicator on a model. The method first quantitatively and systematically describes the cumulative change rate of a longitudinal indicator through a statistical algorithm, and generates a corresponding survival data model. The method then judges the influence of the cumulative change rate of the longitudinal indicator on the survival data model based on the likelihood ratio criterion or the Z test statistic, and compares the influence of the mean value of the longitudinal indicator and the cumulative change rate of the longitudinal indicator on the survival data model.
[0110] Embodiment 3
[0111] According to an embodiment of the present invention, a computer-readable storage medium is provided, and its type may include various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the method for joint modeling based on longitudinal data and survival data described in Example 1 and the steps of the method for judging the impact of indicators on the model described in Example 2.
[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A joint modeling method based on longitudinal data and survival data, characterized in that: The method comprises: Determine an expression of a longitudinal indicator mean function and an expression of a longitudinal indicator cumulative change rate function, wherein the longitudinal indicator mean in the longitudinal indicator mean function depends on the first benchmark independent variable in parameter form and depends on a smooth function based on multidimensional random effects in time form, and the longitudinal indicator cumulative change rate in the longitudinal indicator cumulative change rate function is described as a power root of the varicose measure of the longitudinal indicator mean function; Constructing a longitudinal data sub-model, wherein the longitudinal observation data in the longitudinal data sub-model depends on at least the mean value and random error of the longitudinal indicator; Constructing a survival data sub-model, wherein the survival risk function in the survival data sub-model depends on at least the mean value of the longitudinal indicator and the cumulative change rate of the longitudinal indicator; Determining a covariance matrix structure of the random error based on a computational model selection criterion; The maximum likelihood estimation value of each parameter in the longitudinal data submodel and the survival data submodel is calculated by using the EM algorithm, and the multidimensional random effect is predicted to obtain an estimation of the smooth function; The expression of the vertical index cumulative change rate function is: or, in, It is The mean function of the longitudinal indicator of an individual at time s, yes The second-order derivative of express In time period The cumulative change rate of the longitudinal index on For parameters The weight function of and The smaller the distance, The greater the weight of The expression of the longitudinal index mean function is: in, For the The first benchmark independent variable vector of individuals, for The corresponding regression coefficient is For the The smooth function of an individual, represents the dimension of random effects, It is The fixed effect parameters of dimension, Indicates Individual Dimensionality random effect parameter, Indicates B-spline basis functions corresponding to the dimension; The longitudinal data sub-model is: in, It is The individual in Time point Upper pair random variable The observed value of , Indicates Individual survival time Previously The total number of repeated observations, It is The individual in The external independent variable corresponding to each time point, yes The corresponding unknown parameters are It is The individual in Random error at each time point; The survival data submodel is: or, in, is the benchmark risk function, For the The second benchmark independent variable vector of individuals, for The corresponding coparameters are, is the mean value of the longitudinal index at the current time point t The co-parameters of Before the current time point t The co-parameter of the cumulative rate of change; For parameters The weight function of For parameters The weight function of and The smaller the distance, and The greater the weight of Among them, the longitudinal indicators include blood pressure indicators and / or blood sugar indicators, the first benchmark independent variable and the second benchmark independent variable include the age and gender of the individual, and the external independent variable is an external factor variable that affects the blood pressure indicator or the blood sugar indicator.
2. The method according to claim 1, characterized in that The method comprises: One of the two survival data sub-models was selected as the survival data sub-model for data analysis based on the computational model selection criteria.
3. The method according to claim 1, characterized in that The random error has a mean of 0 and a covariance matrix of The multivariate normal distribution has the covariance matrix Modeling is based on the following formula: in, is a lower triangular matrix with 1s on the diagonal, and is a diagonal matrix with positive diagonal entries, The lower triangular elements of , The diagonal element of , yes right The autoregression coefficient of is the innovation variance.
4. The method according to claim 3, characterized in that The method further comprises: Regarding the and stated Modeling is based on the following formula: in, and is a known independent variable, and are model parameters.
5. A method for judging the influence of an indicator on a model, characterized in that: The method comprises: Adopting the joint modeling method based on longitudinal data and survival data as described in any one of claims 1 to 4 to obtain a survival data sub-model; Assuming that the regression coefficient corresponding to the cumulative change rate of the longitudinal indicator in the survival data sub-model is 0, determining whether the cumulative change rate of the longitudinal indicator affects the survival risk function based on the likelihood ratio criterion or the Z test statistic; and / or, Assuming that the regression coefficient corresponding to the cumulative change rate of the longitudinal indicator in the survival data submodel is greater than the regression coefficient corresponding to the mean of the longitudinal indicator, determine based on the likelihood ratio criterion or the Z test statistic whether the impact of the cumulative change rate of the longitudinal indicator on the survival risk function is greater than the impact of the mean of the longitudinal indicator on the survival risk function.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the method according to any one of claims 1 to 5.
