The invention discloses a method for deeply learning and predicting medical track based on medical records. The method comprises the following steps: S1, encoding
diagnostic information and intervention information on admission through an encoding scheme and converting code into vector to acquire
diagnostic information conversion vector (the formula is shown in the description) and intervention information conversion vector (the formula is shown in the description) separately, and converting the
diagnostic information and intervention information on admission for one time into one 2M-dimensional vector [xt, pt]; S2, input the vector [xt, pt] into an LSTM model, and evaluating the current output value ht to obtain the current
disease state; S3, predicting a diagnostic code dt+1 according tothe
disease state ht and predicting the
disease progression through the diagnostic code dt+1; S4, calculating an intervention code st of the time t, increasing a
time structure in the LSTM model, collecting the historical disease states in multiple time ranges, collecting the state of each section of a horizontal time shaft, collecting all the diseases states, stacking into a vector (the formulais shown in the description), and feeding back the vector (the formula is shown in the description) into a
nerve network to predict the
future risk result Y.