A time series data prediction method for lung nodule onset
By combining time-series data translation and interaction, EEMD denoising, and TimeGAN enhancement with extreme random tree regression, the problems of insufficient data sequence connection and noise interference in the prediction of pulmonary nodule incidence data are solved, and higher prediction accuracy is achieved.
Patent Information
- Application Number
- CN202311409606.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-27
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-27
AI Technical Summary
Existing time series prediction methods suffer from insufficient data sequence connections and noise interference when processing pulmonary nodule incidence data, resulting in low prediction accuracy, especially when dealing with very long sequences and high parallelism.
We employ a time-series data translation and interaction mechanism, EEMD integrated empirical mode decomposition method for noise reduction, TimeGAN generative adversarial network for data augmentation, and extreme random trees for regression processing to improve data correlation and prediction accuracy.
It significantly improves the prediction accuracy on the pulmonary nodule incidence dataset, outperforming traditional methods in both handling ultra-long sequences and parallelism, with remarkable results.
Smart Images

Figure CN117393149B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, specifically to a time-series data method for the pathogenesis of pulmonary nodules. Background Technology
[0002] Time series is a data type that measures how things change over time, while time series forecasting uses data from a past period to predict information about a future period. Modern understanding of time series analysis is that it originated from the autoregressive model proposed by British statistician Gu Yule in 1927. Since then, especially with the widespread adoption of computer hardware and software, more and more researchers have recognized the importance of time series forecasting, and its applications in industry and academia have expanded significantly. This has sparked another wave of research into time series forecasting. The main time series forecasting methods and their existing technical challenges are as follows:
[0003] 1) Based on traditional time series forecasting models, such as smoothing, trend fitting, combined models, AR models, MA models, ARMA models, ARIMA models, etc., this series of algorithms requires that the time series data should be stable and insensitive to nonlinear relationships.
[0004] 2) Based on intelligent algorithms, such as the Prophet model, which was proposed by Facebook in 2017. Prophet uses the idea of time series decomposition to build regression models related to the time axis and optimizes its parameters through a Bayesian framework. This series of algorithms often requires providing them with sufficient and accurate information, as well as the prior distribution of the parameters.
[0005] 3) The method based on recurrent neural networks utilizes the need for natural language context prediction in the field of NLP, and introduces the concept of time sequence. However, the LSTM algorithm is not good at predicting extremely large sequences. Summary of the Invention
[0006] This invention provides a time-series data prediction method for the pathogenesis of pulmonary nodules. It employs a time-series data translation and interaction mechanism to perform translation and interaction processing on the time-series dataset, thereby solving the technical problem of insufficient connection between preceding and subsequent time-series data sequences.
[0007] This invention can be achieved through the following technical solutions:
[0008] A time-series data prediction method for the pathogenesis of pulmonary nodules, including
[0009] A time-series dataset containing multiple features of pulmonary nodule pathogenesis is obtained, and the time-series data of each feature are processed by translation and interaction to obtain an initial time-series dataset.
[0010] Data denoising and data augmentation are performed on the time series data of each feature in the initial time series dataset to obtain the final time series dataset;
[0011] Finally, extreme random trees are used to perform regression processing on the final time series dataset to obtain prediction results.
[0012] Furthermore, the time-series dataset is set up as a matrix structure with the time-series data of each feature as column vectors. The steps for performing translation and interactive processing on the time-series data of each feature are as follows:
[0013] 1) Perform a deep copy of the time series dataset D to obtain Di. shift ;
[0014] 2) If the number of translations is n diff If the value is not 0, then each feature column vector in the time series dataset D is shifted by one feature unit, and n... diff Subtract 1;
[0015] 3) Fill in the null values generated by the translation with NaN, and add the new features generated after the translation into D according to the corresponding dimensions. shift ;
[0016] 4) Repeat S2 and S3 until n diff =0;
[0017] 5) In D shift In this process, linear operations are performed on all the new features generated by the data translation at each time step and the features at the original time step.
[0018] 6) Obtain the final dataset and use it as the initial dataset.
[0019] Furthermore, for each row of data, we judge each one. If there is a feature value of NAN, we mark the data segment at this time. Finally, we delete all the marked data segments.
[0020] Furthermore, the initial time-series dataset is denoised using the EEMD integrated empirical mode decomposition method. Then, the TimeGAN generative adversarial network is used to perform multi-dimensional data augmentation on the time-series data of each feature in the denoised initial time-series dataset to obtain the final time-series dataset.
[0021] A time-series data prediction device based on the time-series data prediction method for pulmonary nodule pathogenesis described above, comprising:
[0022] The time series dataset adopts a matrix structure with time series data of each feature as column vectors;
[0023] The temporal feature translation and interaction module is used to perform data translation and interaction processing on each feature column vector in the time series dataset to obtain the initial time series dataset.
[0024] The data denoising module is used to denoise the initial time-series dataset;
[0025] The data augmentation module is used to augment the denoised initial time-series dataset to obtain the final time-series dataset;
[0026] The prediction module is used to make predictions on the final time series dataset.
[0027] Furthermore, the data denoising module uses the EEMD integrated empirical mode decomposition method to denoise the initial time series dataset, the data augmentation module uses TimeGAN to generate the denoised initial time series dataset after adversarial network denoising and then performs data augmentation, and the prediction module uses extreme random trees to predict the final time series dataset.
[0028] The beneficial technical effects of this invention are as follows:
[0029] 1) Whether in processing very long sequences or in terms of parallelism, the prediction method of this invention has higher accuracy than the model mentioned above in predicting publicly available tuberculosis datasets.
[0030] 2) To address the issue of insufficient connection between preceding and following data sequences, a temporal feature shifting and interaction approach was adopted to obtain temporal features that are beneficial for prediction. At the same time, the EEMD method of feature decomposition was used to eliminate noise. Then, the data was augmented by the TimeGAN generative adversarial network and input into the prediction model. The regression pattern of the ensemble model ET extreme random tree was used for prediction, resulting in high accuracy and significant effects. Attached Figure Description
[0031] Figure 1 This is an overall flowchart of the present invention;
[0032] Figure 2 A schematic diagram showing the results before and after a translation interaction of the time-series data translation interaction mechanism of the present invention;
[0033] Figure 3 This is a structural diagram of the data noise reduction process using the EEMD method in this invention;
[0034] Figure 4 This is a schematic diagram of the time series data prediction device for the time series data prediction method for the pathogenesis of pulmonary nodules of the present invention. Detailed Implementation
[0035] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.
[0036] like Figure 1As shown, this invention provides a time-series data prediction method for the pathogenesis of pulmonary nodules, which mainly includes the following steps:
[0037] In step S101, a time-series feature translation interaction mechanism is used to improve the problem of incomplete use of time-series data features by the extreme random tree model and increase prior knowledge of time series.
[0038] Specifically, time-series data on various characteristics of pulmonary nodules are collected to construct a time-series dataset, denoted as D. The dataset is then divided into N dimensions according to chronological order, where N is the number of time-series data entries. Each square in each column represents a feature, and each row represents a specific feature within the entire time period. Figure 2 As shown, first, a deep copy of the entire time-series dataset is performed. Then, it is shifted N times in column vector units. The newly obtained features, i.e., the new features generated by shifting the original features N times after decomposition, are added to the deep-copy dataset in the order of their corresponding dimensions. Thus, the total number of entries in the deep-copy dataset is expanded to N. 2 ,like Figure 2 As shown, D′ N D N The result after performing a feature unit translation is finally in the expanded D. shift In this process, a linear operation is performed on all the new features generated by the data translation at each time step and the features at the original time step to obtain the final dataset.
[0039] The process of data translation and interaction is as follows:
[0040] 1) Perform a deep copy of the time series dataset D to obtain Di. shift ;
[0041] 2) If the number of translations is n diff If the value is not 0, then each feature column vector in the time series dataset D is shifted by one feature unit, and n... diff Subtract 1;
[0042] 3) Fill in the null values generated by the translation with NaN, and add the new features generated after the translation into D according to the corresponding dimensions. shift ;
[0043] 4) Repeat S2 and S3 until n diff =0;
[0044] 5) In D shift In this process, linear operations are performed on all the new features generated by the data translation at each time step and the features at the original time step.
[0045] 6) Obtain the final dataset, which will be used as the initial dataset for subsequent calculations.
[0046] In step S102, a time series data discriminator is used to determine whether there are null values for the current feature in the data of all time periods. If there are, they are deleted.
[0047] Specifically, each row of data is evaluated one by one. If a feature value of NAN exists, the data segment at that moment is marked, and finally all marked data segments are deleted.
[0048] In step S103, the initial time series data is denoised.
[0049] Since the dimensions of the input time series are inconsistent, when the dimension of the input time series is small and there is noise, the EEMD integrated empirical mode decomposition method is selected to further eliminate noise and enhance features.
[0050] Specifically, in this embodiment, the basic process of the EEMD integrated empirical mode decomposition method is as follows:
[0051] First, determine the number of noise additions T, and then add white noise w to each dimension of the input feature according to the number of additions. i The white noise algorithm is given by formula (1), which applies to each dimension of feature s. T (t) Using the empirical mode decomposition algorithm, the components A[s] of the Pth order are obtained. T [(t)], and then the P-order average residual component r is obtained using the mean formula. P The specific algorithm is as follows: Formula (2), Formula (3), and then Formula (4) is used to obtain the P-th order average IMF (Intrinsic Mode Functions, IMF) component C. P Finally, let s(t) = r P Similarly, the IMF components of orders 1 to P-1 can be obtained sequentially, up to r. P It cannot be decomposed, i.e., r P The termination condition is met, and the signal type is a monotonic signal.
[0052] The decomposition algorithm result can be obtained from formula (5) as C, where C is the set of IMF components from order 1 to P-1, and C is used as input to enter the data augmentation module.
[0053] w i =(-1) q εv i (t) (1)
[0054] q∈[1,2]
[0055] i∈[1,T]
[0056] Among them, w i,i∈[1,T] To add random white noise, ε is standard white noise, v i (t) represents white noise that also follows a normal distribution.
[0057] s T (t)=s(t)+β P-1 E P (w T (2)
[0058] Among them, E P (*) represents the P-stage empirical mode decomposition components generated using the empirical mode decomposition algorithm, β. i,i∈[1,P-1] These are constant coefficients.
[0059]
[0060] Where A(*) is the k-th order residual value of the mapping of the k-th order IMF component in Empirical Mode Decomposition.
[0061] C P (t)=s(t)-r P (4)
[0062] C = C j,j∈[1,P-1] (5)
[0063] In step S104, the TimeGAN generative adversarial network is used to augment the denoised initial time series dataset, enrich the data, and obtain the final time series dataset.
[0064] Data augmentation is performed using the TimeGAN generative adversarial network algorithm. TimeGAN introduces the use of raw data as a progressively supervised loss, which further enables the model to capture the conditional distribution in time series data. At the same time, it introduces an embedding network to provide an invertible mapping between the model and the latent representation, which further reduces the high-dimensionality of generative adversarial learning. Finally, it utilizes supervised sharing and jointly trained embedding networks to generate realistic time series data.
[0065] Specifically, in this embodiment, the parameters to be provided to the TimeGAN generative adversarial network are defined appropriately according to requirements, as shown in Table 1 below.
[0066] Table 1
[0067]
[0068] In step S105, the regression pattern of the extreme random tree is used for prediction.
[0069] Specifically, in this embodiment, because Extreme Random Trees (ARBRs) are sensitive to high-dimensional features, and can achieve parallel computation and fully select useful features, the trained model has low variance and good generalization ability due to random sampling. The implementation is also simple. Before executing the ARBR regression task mode algorithm, the data, after the aforementioned enhancement and cleaning steps, is divided into training and test sets and then standardized. The ARBR generation process is significantly affected by the random attribute P of individual tree nodes, the minimum number of samples N for tree node splitting, and the final model size S. Therefore, grid search is used for parameter optimization, using different parameters to assess their impact on the mean squared error; parameters with larger errors are considered better. The core implementation consists of four steps: sample selection, feature selection, decision tree construction, and ARBR prediction. The first three steps are iterated to form a forest, and the test samples are then input into this forest. ARBR prediction uses each decision tree to regress the test samples, obtaining the final prediction result. The results are shown in Table 2.
[0070] Table 2
[0071]
[0072] In summary, compared with existing time series forecasting methods, the advantages of this method are:
[0073] 1) Whether in handling very long sequences or in terms of parallelism, the model performs better than the models mentioned above in predicting publicly available tuberculosis datasets.
[0074] 2) To address the issue of insufficient connection between preceding and following data sequences, a time-series feature interaction approach was adopted to obtain time-series features that are beneficial for prediction. At the same time, the EMD method of feature decomposition was used to eliminate noise. Then, the data was augmented using the TimeGAN module and input into the prediction segment. The regression pattern of the ensemble model ET extreme random tree was used for prediction, with significant results.
[0075] Next, with reference to the accompanying drawings, a temporal prediction method and apparatus for the pathogenesis of pulmonary nodules according to an embodiment of the present invention are described.
[0076] Figure 4 This is a schematic diagram of the temporal prediction device for a temporal prediction method for the pathogenesis of pulmonary nodules according to an embodiment of the present invention.
[0077] The temporal prediction device for this method for predicting the pathogenesis of pulmonary nodules includes:
[0078] Temporal feature interaction module 100;
[0079] Time series data discriminator module 200;
[0080] Data noise reduction module 300;
[0081] Data Augmentation Module 400;
[0082] Prediction module 500;
[0083] Among them, the time-series feature interaction module 100 strengthens the connection between time-series features before and after;
[0084] The time series data discriminator module 200 performs an existence determination on the current time series features;
[0085] Data noise reduction module 300 eliminates noise in time-series data;
[0086] Data augmentation module 400 increases the number of samples in the model and enriches the dataset;
[0087] The prediction module 500 inputs the processed data into an extreme random tree for regression prediction.
[0088] Furthermore, in one embodiment of the present invention, in order to improve the problem of incomplete use of time series data features by the extreme random tree model, a time series feature interaction module is used to increase prior knowledge of the time series.
[0089] Furthermore, in one embodiment of the present invention, in order to determine whether the current data is meaningful, a time-series data discriminator is used; if the current data is empty, its value is set to NAN:
[0090] Since the dimensions of the input time series are inconsistent, when the dimension of the input time series is small and there is noise, the EEMD integrated empirical mode decomposition method is selected to further eliminate noise and enhance features.
[0091] Furthermore, in one embodiment of the present invention, the main idea of using TimeGAN generative adversarial network for data augmentation is to learn data augmentation methods from data. TimeGAN introduces the use of the original data as a progressive supervised loss, which further allows the model to capture the conditional distribution in the time series data. At the same time, it introduces an embedding network to provide an invertible mapping between the model and the latent representation, which further reduces the high-dimensionality of generative adversarial learning. Finally, it uses supervised sharing and jointly trained embedding networks to generate realistic time series data.
[0092] Furthermore, in one embodiment of the present invention, because extreme random trees are sensitive to high-dimensional features, and can achieve parallel computation and fully select useful features, the trained model has small variance and good generalization ability due to random sampling. The implementation method in code is also simple. Before executing the regression task mode algorithm of extreme random trees, the data that has been enhanced and cleaned in the above steps is divided into training set and test set, and then standardized. During the generation of extreme random trees, the random attribute P of a single tree node, the minimum number of samples N for splitting a tree node, and the final model size S have a large impact. Therefore, grid search is used for parameter optimization. Different parameters are used to measure the degree of influence on the mean squared error. The larger the error, the better the parameter is considered. Finally, its core implementation consists of four steps: selecting samples, selecting features, constructing decision trees, and extreme random tree prediction. The three steps before extreme random tree prediction are iterated to form a forest. The test samples are then input into the forest. Extreme random tree prediction uses each decision tree to regress the test samples to obtain the final prediction result.
[0093] It should be noted that the foregoing explanation of the intent recognition method embodiment for user question answering in the industrial field also applies to the device of this embodiment, and will not be repeated here.
[0094] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0095] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0096] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A time-series data prediction method for the pathogenesis of pulmonary nodules, characterized in that: include A time-series dataset containing multiple features of pulmonary nodule pathogenesis is obtained, and the time-series data of each feature are processed by translation and interaction to obtain an initial time-series dataset. Data denoising and data augmentation are performed on the time series data of each feature in the initial time series dataset to obtain the final time series dataset; Finally, extreme random trees are used to perform regression processing on the final time series dataset to obtain prediction results; The time-series dataset is set up as a matrix structure with the time-series data of each feature as column vectors. The steps for performing translation and interactive processing on the time-series data of each feature are as follows: 1) Perform a deep copy of the time series dataset D to obtain Di. shift ; 2) If the number of translations is n diff If the value is not 0, then each feature column vector in the time series dataset D is shifted by one feature unit, and n... diff Subtract 1; 3) Fill in the null values generated by the translation with NaN, and add the new features generated after the translation into D according to the corresponding dimensions. shift ; 4) Repeat steps 2) and 3) until n diff =0; 5) In D shift In this process, linear operations are performed on all the new features generated by the data translation at each time step and the features at the original time step. 6) Obtain the final dataset, and use it as the initial dataset; The steps for performing data denoising and data augmentation on the time series data of each feature in the initial time series dataset to obtain the final time series dataset are as follows: the initial time series dataset is denoised using the EEMD ensemble empirical mode decomposition method, and then the TimeGAN generative adversarial network is used to perform multi-dimensional data augmentation on the time series data of each feature in the denoised initial time series dataset to obtain the final time series dataset.
2. The time-series data prediction method for pulmonary nodule pathogenesis according to claim 1, characterized in that: For each row of data, check it one by one. If there is a feature value of NAN, mark the data segment at this time. Finally, delete all marked data segments.
3. A time-series data prediction device employing the time-series data prediction method for pulmonary nodule pathogenesis as described in claim 1, characterized in that: include The temporal feature translation and interaction module is used to perform data translation and interaction processing on each feature column vector in the time series dataset to obtain the initial time series dataset. The data denoising module is used to denoise the initial time-series dataset. The data augmentation module is used to augment the initial time-series dataset after noise reduction to obtain the final time-series dataset. The prediction module is used to make predictions on the final time series dataset.
4. The time-series data prediction device according to claim 3, characterized in that: The data denoising module uses the EEMD integrated empirical mode decomposition method to denoise the initial time series dataset. The data augmentation module uses the TimeGAN generative adversarial network to augment the denoised initial time series dataset. The prediction module uses extreme random trees to predict the final time series dataset.
