A disease data typing method based on a T-LSTM bidirectional autoencoder

By constructing a T-LSTM-based bidirectional autoencoder model, irregular time intervals in medical data are processed, and positive and negative information in time-series data is captured. This solves the problem of insufficient information utilization in existing technologies and enables more accurate disease data classification and subtype mining.

CN116779174BActive Publication Date: 2026-11-24SHENYANG INST OF COMPUTING TECH CO LTD THE CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310452109.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2026-11-24
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively handle the temporal relationships of irregular time intervals in medical data, resulting in the inability to fully utilize forward and backward information in patient diagnosis and affecting the accuracy of disease data classification.

Method used

A T-LSTM-based bidirectional autoencoder is adopted. By constructing a bidirectional autoencoder model, medical records and time interval information are processed from both forward and backward directions to capture the positive and negative information patterns of time series data, thereby enhancing the model's feature extraction and clustering effects on disease data.

Benefits of technology

It improves the clustering effect of disease data typing, can more comprehensively uncover hidden subtypes of patients, solves the problem of heterogeneity of patient groups, and provides a deeper explanation of the underlying disease mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116779174B_ABST
    Figure CN116779174B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of medical natural language processing and discloses a disease data typing method based on a T-LSTM bidirectional autoencoder. The method includes the following steps: 1) acquiring longitudinal time-series electronic medical record data and preprocessing it; 2) constructing and training a T-LSTM-based bidirectional autoencoder; 3) training the bidirectional autoencoder using the preprocessed electronic medical record data; 4) processing the electronic medical record data using the trained bidirectional autoencoder and clustering the processing results using the k-means algorithm to obtain the subtype typing results of the disease data. The autoencoder constructed in this invention is a bidirectional autoencoder, which captures the hidden contextual information within the time series, namely, the past and future records of the current patient's medical visits, enabling more comprehensive extraction of data feature information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of medical natural language processing and relates to multivariate time series prediction, specifically a disease data typing method based on a T-LSTM bidirectional autoencoder. Background Technology

[0002] Electronic medical records (EMRs) can provide an important resource for understanding population health management. Hidden within EMRs are numerous subtypes limited by existing clinical descriptions. By learning deep patient representations and clustering them, the vast potential of these hidden patterns can be unlocked, leading to deeper insights into disease conditions and treatment. Analyzing heterogeneous patients from complex patient data to extract their subtypes is extremely challenging. Deep learning has been applied to obtain more robust patient representations for disease subtyping.

[0003] Because medical data is mostly time-series data, techniques such as machine learning can extract disease descriptions and other clinical concepts from the data itself. Since this type of data has a longitudinal time-series characteristic, capturing the temporal relationships between records is particularly important. Patient admission and treatment time-series data is typically presented at irregular time intervals, which may indicate the onset of certain diseases. If a patient is frequently admitted within a short period, they may have serious health problems. Conversely, if there is a long interval between two visits, the previous visit record often cannot provide useful information for the current diagnosis. However, processing this data requires not only grasping the dependencies between irregularly spaced elements, but also understanding that in processing patient admission and treatment time-series data, the patient's diagnosis is determined by the context of those records. Using only the preceding information from the current record is insufficient for making comprehensive and detailed decisions, which has limitations in many tasks. Summary of the Invention

[0004] To overcome the shortcomings of the existing technologies, this invention proposes a disease data typing method based on a T-LSTM bidirectional autoencoder. The method takes the irregular time intervals in the medical records and the medical record data itself as inputs, and processes the data from both forward and backward directions. It fully considers the positive and negative information patterns of time-series data, further explores the intrinsic connections between the current record and records from the past and future, effectively enhances the model's extraction of features from the original sequence, and finally outputs a powerful single representation of the patient learned by the encoder, improving the model's clustering effect for disease data typing.

[0005] The technical solution adopted by the present invention to achieve the above objectives is as follows:

[0006] A disease data typing method based on a T-LSTM bidirectional autoencoder includes the following steps:

[0007] 1) Acquire longitudinal time-series electronic medical record data and preprocess it;

[0008] 2) Construct and train a T-LSTM-based bidirectional autoencoder;

[0009] 3) The electronic medical record data is processed by a trained bidirectional autoencoder, and the processing results are clustered by the k-means algorithm to obtain the subtype classification results of the disease data.

[0010] Step 1) includes the following steps:

[0011] 1.1) Obtain longitudinal time series electronic medical record data and delete feature columns with more than 90% missing values;

[0012] 1.2) In the remaining feature columns with missing values, continuous variables are filled with the mean and categorical variables are filled with "Notrecorded". The filled features are then one-hot encoded.

[0013] 1.3) Calculate the time interval between two adjacent records of the same patient in the electronic medical record data.

[0014] The T-LSTM-based bidirectional autoencoder consists of two different T-LSTM encoder units and two different T-LSTM decoder units. The encoder unit's forward T-LSTM takes the sequences [X1,X2,X3] and [Δ1,Δ2,Δ3] as input, and its backward T-LSTM takes the sequences [X3,X2,X1] and [Δ3,Δ2,Δ1] as input. The hidden state and unit memory output from the bidirectional terminal T-LSTM units are used as the initial hidden state and previous unit memory of the decoder unit's first bidirectional T-LSTM unit, respectively. The data input and interval time input of the decoder unit's first bidirectional T-LSTM unit are both set to zero. The first output of the decoder unit's forward T-LSTM is the reconstruction of the last element X3 of the original sequence. The output sequence is The first output of the backward T-LSTM of the decoder unit is a reconstruction of the first element X1 of the original sequence. The output sequence is Where X1, X2, and X3 are all electronic medical record data, and Δ1, Δ2, and Δ3 are the time interval data corresponding to the electronic medical record data, together constituting the input data. All of these are reconstructed data processed by an input data autoencoder.

[0015] Reconstruction error E of a T-LSTM-based bidirectional autoencoder r for:

[0016]

[0017] Where L is the length of the input sequence, X i Let X be the i-th element of the forward sequence. j Let j be the j-th element of the reverse sequence. It is the i-th reconstructed element of the forward sequence. Let j be the j-th reconstructed element of the reverse sequence. The training objective of the T-LSTM-based bidirectional autoencoder is to minimize the reconstruction error E. r Minimum.

[0018] Step 3) specifically refers to:

[0019] The preprocessed data sequence is input into a T-LSTM-based bidirectional autoencoder. The hidden states of the bidirectional T-LSTM outputs at the encoder unit are obtained. The hidden states carry all the information of the forward T-LSTM and the backward T-LSTM. After the data sequence is input, the encoder unit reduces the dimensionality of the high-dimensional data to low-dimensional data. The two hidden states are concatenated to obtain the representation vector of the bidirectional sequence after being learned by the encoder. The k-means algorithm is used to cluster the representation vector.

[0020] A disease data typing system based on a T-LSTM bidirectional autoencoder includes:

[0021] The data preprocessing module is used to acquire longitudinal time-series electronic medical record data and preprocess it.

[0022] The encoder building block is used to build and train a T-LSTM-based bidirectional autoencoder.

[0023] The subtyping result output module is used to process electronic medical record data through a trained bidirectional autoencoder and cluster the processing results using the k-means algorithm to obtain the subtyping results of the disease data.

[0024] A disease data typing system based on a T-LSTM bidirectional autoencoder includes a memory and a processor; the memory is used to store a computer program; the processor is used to implement the disease data typing method based on a T-LSTM bidirectional autoencoder when the computer program is executed.

[0025] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned disease data typing method based on a T-LSTM bidirectional autoencoder.

[0026] The present invention has the following beneficial effects and advantages:

[0027] 1. The model constructed in this invention uses T-LSTM units, which can handle irregular runtime between consecutive elements in medical record sequence data;

[0028] 2. The autoencoder constructed in this invention is a bidirectional autoencoder that captures hidden information of the internal context of the time series, namely, the past and future records of the current patient's medical records, and can extract data feature information more fully;

[0029] 3. The model of this invention can learn a powerful single representation of patients. Clustering with this representation can uncover multiple subtypes of patients that are hidden and limited by existing clinical descriptions, thus addressing patient heterogeneity and helping to explain different underlying disease mechanisms. Attached Figure Description

[0030] Figure 1 This is a flowchart of the present invention;

[0031] Figure 2 This is a structural diagram of the model of the present invention;

[0032] Figure 3 This is a diagram of the internal structure of a T-LSTM cell.

[0033] Figure 4 shows the model clustering visualization (a: LSTM, b: T-LSTM, c: bidirectional T-LSTM). Detailed Implementation

[0034] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.

[0035] like Figure 1 As shown, the main steps of the patient disease classification method based on T-LSTM bidirectional autoencoder proposed in this paper are as follows:

[0036] Step 1: Obtain the electronic medical record dataset and preprocess it;

[0037] Step 2: Divide the input into two parts: one part is the patient record information in the electronic medical record after data cleaning, and the other part is the time interval information between consecutive records;

[0038] Step 3: Input the above two parts of information into the bidirectional T-LSTM autoencoder for training to minimize the reconstruction error;

[0039] Step 4: Obtain the hidden states of the two ends of the bidirectional encoder;

[0040] Step 5: Concatenate the two hidden states to obtain the representation of the patient's bidirectional sequence after being learned by the encoder;

[0041] Step 6: Cluster the patient's representation vector using the k-means algorithm;

[0042] Step 7: Output the clustering results as patient subtype classification.

[0043] In step 1 of this invention, longitudinal time series electronic medical record data is obtained, and data preprocessing is performed to delete feature columns with more than 90% missing values. For the remaining feature columns with missing values, continuous variables are filled with the mean, and categorical variables are filled with "Not recorded" before one-hot encoding.

[0044] In step 2 of this invention, the time interval of longitudinal time series electronic medical record data is obtained, and the time interval between two adjacent records of the same patient in the electronic medical record data is calculated, which is used as input along with the medical record information.

[0045] In step 3 of this invention, a bidirectional autoencoder based on T-LSTM is constructed. Step 3 consists of the following steps:

[0046] Step 3-1: The T-LSTM cells used first acquire long-term memory C through the network. t-1 tanh (hyperbolic tangent function) is used as the activation function, where W d As the weight, b d As a bias, short-term memory is obtained. Use a non-increasing function to calculate the interval time Δ t Converted to appropriate weights, g(.) represents the heuristic decay function, which is multiplied by the short-term memory to obtain the degraded short-term memory. Make Δ t The larger the value, the smaller the impact of short-term memory, and then the complement space of long-term memory. Added to short-term memory, it forms the adjusted previous memory. Following this is the standard LSTM gated architecture. The T-LSTM cell structure formula is as follows:

[0047]

[0048]

[0049]

[0050]

[0051] i t =σ(W i x t +U i h t-1 +b i )

[0052] f t =σ(Wf x t +U f h t-1 +b f )

[0053] o t =σ(W o x t +U o h t-1 +b o )

[0054]

[0055]

[0056] h t =o*tanh(C t )

[0057]

[0058] Among them, f t Represents the forget gate, i t Indicates the input gate, o t Indicates the output gate. Representing candidate memories, x t Indicates the current input, h t-1 and h t C represents the previous and current hidden states. t Indicates the current memory unit, {W f U f ,b f}, {W i U i ,b i}, {W o U o ,b o},{W c U c ,b c} represent the network parameters for the forget gate, input gate, output gate, and candidate memory, respectively, and σ is the sigmoid activation function.

[0059] Step 3-2: The T-LSTM bidirectional autoencoder consists of two T-LSTM encoder units and two T-LSTM decoder units. The two T-LSTM encoder units are the forward encoder and the backward encoder, respectively. The forward encoder consists of multiple T-LSTM units; the number of T-LSTM units is determined by the number of sequence records currently input from a single patient, such as... Figure 3The current input patient has three medical records, so this T-LSTM forward encoder unit consists of three T-LSTM units (i.e., three light-colored T-LSTMs in the encoder); similarly, the T-LSTM backward encoder unit also consists of three T-LSTM units (i.e., three dark-colored T-LSTMs in the encoder). The decoder unit has the same structure as the encoder unit. Figure 3 The automatic encoder shown consists of 12 T-LSTM units.

[0060] The T-LSTM bidirectional autoencoder uses two distinct T-LSTM encoder and decoder units. The forward T-LSTM takes the sequence [X1, X2, X3] as input, and the backward T-LSTM takes the sequence [X3, X2, X1] as input. The hidden state and cell memory output from the end T-LSTM unit of the encoder are used as the initial hidden state and previous cell memory of the first T-LSTM unit of the decoder, respectively. The data input and interval input of the first T-LSTM unit of the decoder are both set to zero. The first output of the forward decoder is a reconstruction of the last element X3 of the original sequence. The output sequence is The first output of the backward decoder is the reconstruction of the first element X1 of the original sequence. The output sequence is

[0061]

[0062] L is the length of the input sequence, X i Let i be the i-th element of the forward sequence. Let X be the i-th element of the reconstructed forward sequence. j Let j be the j-th element of the reverse sequence. Let j be the j-th element of the reconstructed reverse sequence. and The encoder reduces the dimensionality of the input data by providing forward reconstruction elements (forward input of the data sequence) and backward reconstruction elements (reverse input of the data sequence of the same patient), respectively. The decoder then uses this lower-dimensional data to reconstruct the original input, a process known as inverse encoding. The error between the original data and the reconstructed data is the reconstruction error. The forward reconstruction error (forward input of the data sequence) and the backward reconstruction error (reverse input of the data sequence of the same patient) are added together to form the autoencoder's reconstruction error E. r Joint training is performed, with the training objective being the reconstruction error E. r Minimize, that is, find an efficient low-dimensional representation by training the network to minimize this reconstruction error.

[0063] In step 4 of this invention, the processed data is input into a bidirectional autoencoder based on T-LSTM for training. The hidden layer dimension of the bidirectional T-LSTM encoder is set to 2. All weights are learned simultaneously in a data-driven manner. The patient time series data are divided into batches according to the same sequence length, and a fixed number of iterations are used to optimize the data with a mini-batch Adam optimizer.

[0064] In step 5 of this invention, the sequence is re-input into a T-LSTM-based bidirectional autoencoder, and the hidden states at the end of the bidirectional encoder are obtained. The hidden states carry all the information of the forward and backward directions. After the sequence is input, the encoder reduces the high-dimensional data to 2-dimensional. The two hidden states are concatenated to obtain the representation of the bidirectional sequence after being learned by the encoder, that is, a four-dimensional representation vector. The k-means algorithm is used to cluster this vector. When performing cluster visualization, only the first two dimensions of the representation vector are selected so that the representation can be drawn in two-dimensional space.

[0065] A specific embodiment of a patient disease classification method based on a T-LSTM bidirectional autoencoder is as follows:

[0066] Since the basic facts of clustering in real-world patient electronic medical record data are unknown, this embodiment first uses artificially generated electronic medical records, selecting data from them to evaluate their clustering effect. This dataset has a data distribution similar to that of real-world electronic medical record data, thus it can be used for research. Four types of normally distributed clustered data with different means and the same covariance are obtained. The time interval between consecutive records is calculated as part of the input, with batch sequence lengths of 4, 6, 18, 22, and 30, and the input data dimension is 5.

[0067] Autoencoders were constructed using bidirectional T-LSTM, T-LSTM, and LSTM respectively, and their ability to learn data representations was compared. The model structure diagram of the constructed T-LSTM bidirectional autoencoder is shown below. Figure 2 As shown, the forward T-LSTM takes the sequence [X1,X2,X3] and the time interval [Δ1,Δ2,Δ3] as input, while the backward T-LSTM takes the sequence [X3,X2,X1] and the time interval [Δ3,Δ2,Δ1] as input.

[0068] The T-LSTM cell structure diagram used to construct the encoder is shown below. Figure 3As shown, T-LSTM does not completely discard long-term memory. Instead, it performs subspace decomposition on the memory from the previous time step, adjusting short-term memory according to the time span between records at time steps t and t-1. It uses the interval between consecutive records to weight short-term memory, causing corresponding degradation. The parameters of the decomposed network are learned simultaneously with other network parameters through backpropagation. First, the long-term memory C is obtained through the network. t-1 Short-term memory is obtained by using tanh (hyperbolic tangent function) as the activation function. Its formula is Use non-increasing functions The interval time is weighted appropriately and multiplied by the short-term memory to obtain the reduced short-term memory. Its formula is Then the complement space of long-term memory Added to short-term memory, it forms the adjusted previous memory. Following this is the standard LSTM gated architecture. The remaining formulas for the T-LSTM cell structure are as follows:

[0069] i t =σ(W i x t +U i h t-1 +b i (Input Gate)

[0070] f t =σ(W f x t +U f h t-1 +b f (Forgotten Gate)

[0071] o t =σ(W o x t +U o h t-1 +b o (Output Gate)

[0072] (Candidate Memory)

[0073] (Current memory)

[0074] h t =o*tanh(C t (Currently hidden)

[0075] Depend on Figure 2The hidden state and cell memory output from the bidirectional T-LSTM unit of the encoder are used as the initial hidden state and previous cell memory of the first bidirectional T-LSTM unit of the decoder, respectively. The data input and interval input of the first bidirectional T-LSTM unit of the decoder are both set to zero. The first output of the forward decoder is the reconstruction of the last element X3 of the original sequence. The output sequence is The first output of the backward decoder is the reconstruction of the first element X1 of the original sequence. The output sequence is The training objective is to reconstruct the error E. r Minimize, the reconstruction error calculation formula is as follows

[0076]

[0077] L is the length of the input sequence, X i Let X be the i-th element of the forward sequence. j Let be the j-th element of the reverse sequence. After training, the sequence is re-input into the T-LSTM bidirectional autoencoder to obtain the hidden states at the ends of the bidirectional encoder. The hidden states carry all the information from both the forward and backward directions, so the decoder can reconstruct the original sequence based on them. By concatenating the two hidden states, Where h L h represents the output of the forward-order T-LSTM hidden layer. R The output of the reverse T-LSTM hidden layer represents the bidirectional sequence learned by the encoder, R.

[0078] The hidden layer dimension of the T-LSTM bidirectional autoencoder is set to 2. After the sequence input, the encoder reduces the high-dimensional data to 2-dimensionality. The forward and backward outputs are concatenated to obtain a four-dimensional representation vector. This vector is then clustered using the k-means algorithm, with k set to 4. Each group is repeated ten times. When visualizing the clustering, only the first two dimensions of the representation vector are selected so that it can be plotted in two-dimensional space. The Rand Index (RI) is used to evaluate the clustering performance of each model on the data. RI measures the consistency between the clustering results and the external standard classes of the data, evaluating the discriminative power of the learned representation by the clustering method. Let TP represent positive samples predicted as positive; TN represent negative samples predicted as negative; FP represent negative samples predicted as positive; and FN represent positive samples predicted as negative. The RI calculation formula is:

[0079]

[0080] The RI value ranges from [0,1]. The larger the value, the better the clustering result matches the actual situation and the higher the consistency of the division. When the RI value is 1, the division is completely consistent.

[0081] The RI values ​​of each model are shown in Table 1. The two-dimensional representations obtained from the three models are then clustered and visualized as follows: Figures 4a-4c As shown

[0082] Table 1. Clustering results of different models on artificial datasets.

[0083]

[0084]

[0085] The results in Table 2 show that the average Rand exponent of bidirectional T-LSTM is 0.0783 higher than that of standard LSTM and 0.0081 higher than that of unidirectional T-LSTM. This indicates that the clustering performance of bidirectional T-LSTM is superior to the other two representation learning methods. Sequence data with irregular time intervals are particularly sensitive to this irregularity. The T-LSTM bidirectional autoencoder can not only learn the implicit information of data with unstructured time intervals more comprehensively, but also capture the preceding and following information carried by the input sequence. Figure 4 shows that the T-LSTM bidirectional autoencoder can generate more compact groups in two-dimensional space for learning the representation of the input sequence, resulting in more accurate clustering results.

[0086] The examples on the artificially synthesized datasets described above demonstrate that the T-LSTM bidirectional autoencoder proposed in this invention can learn and record the information more comprehensively, resulting in more accurate clustering and grouping results.

[0087] The following describes the implementation of this method on a real-world dataset. Patient records with a sequence length of at least 3 were selected from the Project Progression Markers for Parkinson's Disease (PPMI) public dataset. The following features were chosen: 1) motor complications, 2) cognitive function, 3) neurobehavioral tests, 4) neuropsychological tests, 5) sleep disorder tests, and 6) original features included in DaTscan imaging. The percentage of missing values ​​for each feature was statistically analyzed, and feature columns with a missing value greater than 90% were removed, resulting in a total of 226 features. For numerical features, interpolation was performed using the mean, and for categorical features, "Not recorded" was used for padding. Then, one-hot encoding was performed, ultimately yielding time-series data from 809 patients, totaling 12,833 data points with a data dimension of 953, including 655 PD patients and 154 healthy controls.

[0088] An autoencoder was constructed using bidirectional T-LSTM, T-LSTM, and LSTM, and the single representation learned by the encoder was used for k-means clustering. For each subtype of patient clusters analyzed from the PPMI data, since the basic facts of the clustering were unknown, statistical analysis was used to indirectly understand the clustering performance based on the clustering results.

[0089] Multiple k-values ​​were used for k-means clustering, and two main clustering patterns were observed. Therefore, the k-means clustering parameter was set to k=2. To study the classification performance of the subtypes generated by the clustering, the clustering results were interpreted. Categorical features were compared using the chi-square test, and continuous features were compared using the F-test. Features with a p-value less than 0.05 were identified as having significant group effects. Table 3 lists the clustering results obtained using the three models, showing only the significant features with a p-value less than 0.05 and their mean values ​​in their respective groups.

[0090] Table 2. Clustering Results Analysis of Different Models on Real Data Sets

[0091]

[0092] Table 2 shows that the LSTM clustering results showed no significant correlation features, with most patients grouped into one cluster. The bidirectional T-LSTM identified two additional features compared to the standard T-LSTM: SDMTOTAL and DATSCAN_PUTAMEN_L. Comparing the means of the two clusters obtained by the bidirectional T-LSTM, it is known that the DATSCAN values ​​of PD patients are lower than those of healthy controls. Therefore, it can be concluded that PD patients are mainly concentrated in subtype 1, while healthy controls are mainly concentrated in subtype 2. The bidirectional T-LSTM generated more significant features with small p-values, meaning that this method, when performing patient subtype clustering analysis on real-world datasets with unknown underlying facts, can provide more accurate patient classification results by incorporating unstructured time intervals and bidirectionally acquiring electronic medical record information.

[0093] Supervised classification and unsupervised clustering examples were performed on artificially generated data and real-world data using a bidirectional T-LSTM structure. The results show that the T-LSTM bidirectional autoencoder model, when clustering patient electronic medical record data, not only mines the impact of the length of the interval between two consecutive records by incorporating time interval information into the input, but also captures both past and future information from the currently processed data, enabling more comprehensive data learning. The output patient representation more profoundly captures patient information, providing a significant positive impact on the clustering of disease subtypes. Statistical analysis yields subtype classifications of patients for their current disease, allowing for different types of treatment interventions for different groups, providing precision medicine tailored to the health conditions of different patient groups.

Claims

1. A disease data typing method based on a T-LSTM bidirectional autoencoder, characterized in that, Includes the following steps: 1) Acquire longitudinal time-series electronic medical record data and preprocess it; 2) Construct and train a T-LSTM-based bidirectional autoencoder; 3) The electronic medical record data is processed by a trained bidirectional autoencoder, and the processing results are clustered by the k-means algorithm to obtain the subtype classification results of the disease data; Step 1) includes the following steps: 1.1) Obtain longitudinal time series electronic medical record data and delete feature columns with more than 90% missing values; 1.2) In the remaining feature columns with missing values, continuous variables are filled with the mean and categorical variables are filled with "Notrecorded". The filled features are then one-hot encoded. 1.3) Calculate the time interval between two adjacent records of the same patient in the electronic medical record data; The T-LSTM-based bidirectional autoencoder consists of two different T-LSTM encoder units and two different T-LSTM decoder units, wherein the forward T-LSTM of the encoder unit is... and The sequence is used as input and fed backward into a T-LSTM. and The sequence is used as input. The hidden state and cell memory output from the bidirectional terminal T-LSTM units are used as the initial hidden state and previous cell memory of the first bidirectional T-LSTM unit of the decoder unit, respectively. The data input and interval input of the first bidirectional T-LSTM unit of the decoder unit are both set to zero. The first output of the forward T-LSTM of the decoder unit is the last element of the original sequence. Reconstruction The output sequence is The first output of the backward T-LSTM of the decoder unit is the first element of the original sequence. Reconstruction The output sequence is ,in, All of these are electronic medical record data. Both are time interval data corresponding to electronic medical record data, and the two constitute the input data. All of these are reconstructed data processed by an input data autoencoder. Reconstruction error of a T-LSTM-based bidirectional autoencoder for: ; in, Given the length of the input sequence, The first of the forward sequence One element, The first of the reverse sequence One element, The first of the forward sequence One reconstructed element, The first of the reverse sequence The training objective of the T-LSTM-based bidirectional autoencoder is to minimize the reconstruction error. Minimum; Step 3) specifically refers to: The preprocessed data sequence is input into a T-LSTM-based bidirectional autoencoder. The hidden states of the bidirectional T-LSTM outputs at the encoder unit are obtained. The hidden states carry all the information of the forward T-LSTM and the backward T-LSTM. After the data sequence is input, the encoder unit reduces the dimensionality of the high-dimensional data to low-dimensional data. The two hidden states are concatenated to obtain the representation vector of the bidirectional sequence after being learned by the encoder. The k-means algorithm is used to cluster the representation vector.

2. A disease data typing system based on a T-LSTM bidirectional autoencoder, the system being used to implement the disease data typing method based on a T-LSTM bidirectional autoencoder as described in claim 1, characterized in that, include: The data preprocessing module is used to acquire longitudinal time-series electronic medical record data and preprocess it. The encoder building block is used to build and train a T-LSTM-based bidirectional autoencoder. The subtyping result output module is used to process electronic medical record data through a trained bidirectional autoencoder and cluster the processing results using the k-means algorithm to obtain the subtyping results of the disease data.

3. A disease data typing system based on a T-LSTM bidirectional autoencoder, characterized in that, It includes a memory and a processor; the memory is used to store a computer program; the processor is used to implement, when executing the computer program, a disease data typing method based on a T-LSTM bidirectional autoencoder as described in claim 1.

4. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements a disease data typing method based on a T-LSTM bidirectional autoencoder as described in claim 1.