Atrial fibrillation recurrence prediction method based on artificial intelligence
By using an event-driven latent state inference model and a population recovery process atlas, the physiological trajectory of atrial fibrillation recurrence is reconstructed using discrete clinical events. This solves the problem of relying on high-cost continuous monitoring in existing technologies and enables personalized atrial fibrillation recurrence risk prediction and clinical decision support.
Patent Information
- Application Number
- CN202610170414.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-06
- Publication Date
- 2026-03-20
- Estimated Expiration
- 2046-02-06
AI Technical Summary
Existing methods for predicting atrial fibrillation recurrence rely on high-cost continuous monitoring data, cannot effectively utilize sparse and discrete clinical events, and lack temporal correlation information, resulting in prediction results that lack personalized temporal interpretability and clinical decision support value.
By using an event-driven latent state inference model, the intrinsic physiological state temporal path is reconstructed using discrete clinical event sequences. This is combined with a population recovery process map for similarity retrieval to generate a personalized relapse risk prediction path.
It enables the reconstruction of continuous physiological state trajectories from sparse discrete events, providing personalized and highly feasible prediction of atrial fibrillation recurrence risk, and supporting individualized clinical decision-making.
Smart Images

Figure CN121709264A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of medical information technology, in particular to an atrial fibrillation recurrence prediction method based on artificial intelligence. BACKGROUND
[0002] Accurate prediction of the recurrence risk after catheter ablation of atrial fibrillation (AF) is one of the key challenges in the field of clinical rhythm management. Postoperative recurrence not only affects the quality of life of patients, but also means the re-investment of medical resources. Therefore, the development of effective prediction methods has important clinical significance for realizing individualized postoperative management and optimizing follow-up strategies. Currently, research and practice in this field mainly focus on the continuous monitoring and evaluation of the physiological state of postoperative patients.
[0003] In the prior art, prediction methods based on continuous physiological signals (such as long-term electrocardiogram monitoring, wearable device data) are the mainstream direction. This kind of method captures the dynamic changes of electrophysiological indicators such as heart rate variability and atrial premature beat load to assess the recurrence risk. In addition, some studies attempt to combine the patient's clinical baseline characteristics (such as age, medical history, left atrial size) and early postoperative rhythm monitoring results to construct statistical models or machine learning models for risk stratification. Another approach focuses on using cardiac imaging data (such as the degree of fibrosis shown by cardiac magnetic resonance delayed enhancement) to assess atrial matrix stability and use it as a static basis for prediction. These technical paths provide information for recurrence risk assessment at specific levels.
[0004] However, the existing technical solutions have structural limitations in methodology, which restrict their prediction efficiency and clinical applicability. First, the technical path that relies on high-density continuous physiological signal monitoring is limited by the data acquisition threshold, and its feasibility for large-scale and long-term implementation is insufficient. Moreover, the captured electrophysiological indicators have gaps with key dimensions such as patient subjective experience and clinical intervention decisions. Second, for discrete clinical event sequences naturally occurring in routine medical processes, existing prediction models usually simplify them into static categorical variables or perform simple statistical aggregation (such as counting, one-hot encoding). Such processing methods completely strip away the temporal association and sequential logic between events, and cannot depict the dynamic process of state evolution. More importantly, existing methods lack the ability to reverse engineer the continuous intrinsic physiological state evolution from sparse, asynchronous discrete events, and fail to place the individual's current recovery segment in the network of population evolution paths for similarity retrieval and deduction. This leads to the prediction logic of existing models often staying at the surface feature association level, making it difficult to reveal the uniqueness of individual recovery trajectories and provide risk evolution paths with temporal explanation. Therefore, there are significant bottlenecks in the accuracy of individualized prediction and the value of clinical decision support. SUMMARY
[0005] The present application aims to provide an artificial intelligence-based atrial fibrillation recurrence prediction method, which solves the following technical problems:
[0006] The existing atrial fibrillation recurrence prediction method mainly relies on high-cost continuous monitoring data, and the feasibility is limited. It only makes static statistics on conventional discrete clinical events, loses key time sequence correlation information. And it cannot reversely construct the continuous evolution track of the patient's internal physiological state from discrete events, and fails to place the individual recovery stage in the group evolution network for similarity deduction, resulting in a lack of individualized time sequence explanation of the prediction result, and limited clinical decision support value.
[0007] The purpose of the present application can be achieved by the following technical solutions: An artificial intelligence-based atrial fibrillation recurrence prediction method, comprising the following steps: S1, inputting a discrete clinical event sequence recorded after ablation of a target patient, including symptom records, medication change records and heart rhythm conclusion records, each record being attached with an event timestamp and a text description; S2, inputting the discrete clinical event sequence into an event-driven hidden state deduction model, the model outputting an internal physiological state time sequence path evolving from the initial state after the operation to the current state in a preset physiological state space; S3, identifying a plurality of recovery stages with different evolution modes according to the distribution density and transition direction of the state points in the internal physiological state time sequence path, and generating a corresponding stage feature vector for each recovery stage; S4, taking the last recovery stage as a query stage, searching for all historical recovery stages with a stage feature vector similarity exceeding a set threshold in a pre-constructed group recovery process graph; S5, for each historical recovery stage, traversing backward in time sequence until reaching a node with an atrial fibrillation recurrence label or a long-term stability label, obtaining a complete subsequent stage chain, and mapping each subsequent stage chain back to the physiological state space to form a plurality of candidate future evolution chains starting from the current state; S6, calculating the likelihood score of each candidate future evolution chain according to the event type distribution and time interval features of the discrete clinical event sequence, and sorting and filtering all candidate future evolution chains according to the score, and outputting a personalized recurrence risk prediction path set.
[0008] As a further scheme of the present application, in S2, the running process of the event-driven hidden state deduction model is: define the physiological state space as a multi-dimensional continuous vector space, each dimension of which corresponds to a potential physiological factor, assign an initial state vector to the initial moment after ablation, process each record in the sequence of discrete clinical events in chronological order, when processing a single record, calculate the prediction probability distribution of each type of clinical event based on the current estimated state vector, calculate the difference between the prediction probability distribution and the actual event type; encode the text description of the current event record to obtain an event intensity vector, adjust the state vector estimates of the current moment and the previous moment in reverse according to the difference and the event intensity vector, after processing all event records, output the internal physiological state time sequence path.
[0009] As a further scheme of the present application: the process of adjusting the state vector estimate value according to the difference and the event intensity vector is: construct a forward state transition network that takes the state vector as input and outputs the transition probability of the state vector, and construct a backward inference network that takes the clinical event observation data as input and outputs the inference probability of the state vector; input the current state vector before adjustment into the forward state transition network to obtain the prior state estimate probability distribution, input the actual type and event intensity vector of the current event record into the backward inference network to obtain the posterior state estimate probability distribution, calculate the KL divergence between the prior state estimate probability distribution and the posterior state estimate probability distribution, calculate the gradient of the parameters of the forward state transition network and the backward inference network according to the KL divergence, and update the parameters of the forward state transition network and the backward inference network in the gradient direction.
[0010] As a further scheme of the present application: in S3, the process of identifying the recovery phase and generating the phase feature vector is: In the physiological state space, traverse the internal physiological state time sequence path using a fixed-length sliding window, calculate the mean vector of all state points in each sliding window as the window center point, calculate the variance of the state points in each dimension in each sliding window, when the Euclidean distance between the center points of two consecutive sliding windows exceeds the phase transition distance threshold, record the phase boundary point at the starting position of the window, when the variance change rate of the state points in the two consecutive sliding windows exceeds the variance stability threshold, record the phase boundary point at the starting position of the window; According to all phase boundary points, divide the time sequence path into multiple continuous paragraphs, each paragraph being a recovery phase, for each recovery phase, the phase feature vector is composed of the mean and standard deviation of the state points in each dimension in the phase, the duration of the phase, the difference vector between the starting and ending state vectors of the phase, and the sum vector of the one-hot encoding of the clinical event types in the phase.
[0011] As a further scheme of the present application: in S4, the process of searching the historical recovery stage in the population recovery process atlas is: The nodes in the population recovery process atlas store the stage feature vectors of the historical recovery stages, the directed edges connect the adjacent stage nodes of the same historical patient and the edge weights are the similarities of the stage feature vectors of the two nodes, the cosine similarities of the stage feature vector of the query stage and the stage feature vectors of the nodes in the atlas are calculated, and the nodes with the cosine similarities exceeding the search threshold are selected to form the preliminary search results; For each node in the preliminary search results, the matching degree between the previous recovery stage feature of the query stage on the original path and the feature of the previous node of the node in the atlas is calculated, the cosine similarity and the matching degree are fused for weighted scoring, and the historical recovery stage set is selected according to the score.
[0012] As a further scheme of the present application: in S5, the process of obtaining a complete subsequent stage chain is: The node corresponding to the searched historical recovery stage in the population recovery process atlas is located as a starting node, and the first subsequent node is visited when the attribute of the node includes the atrial fibrillation recurrence marker or the long-term stability marker, if not, the node is recorded as the current chain node and the next subsequent node is visited along the directed edge, and the node attribute checking and recording operations are repeatedly performed until the terminal node with the attribute including the atrial fibrillation recurrence marker or the long-term stability marker is visited, and the starting node, all recorded current chain nodes and the terminal node are connected in the order of access time to form a complete subsequent stage chain.
[0013] As a further scheme of the present application: in S5, the process of forming multiple candidate future evolution chains starting from the current state is: For each node in the subsequent stage chain, the state point mean vector component and the stage duration component in the stored stage feature vector are extracted, in the physiological state space, a trajectory subsection representing the continuous evolution of the state is generated with the state point mean vector as the geometric center and the stage duration corresponding time interval as the definition domain, adjacent trajectory subsections are connected at the time endpoints according to the time order of the nodes in the chain, and the trajectory shape at the connection is spatially interpolated and smoothed according to the weight value of the directed edge connecting the corresponding nodes in the atlas, to form a complete and continuous initial trajectory. Calculate the vector difference between the initial trajectory starting point coordinate in the physiological state space and the target patient current state coordinate, subtract the vector difference from all point coordinates on the initial trajectory, complete the translation alignment of the trajectory space position, and mark the translated and aligned trajectory as a candidate future evolution chain starting from the current state.
[0014] As a further scheme of the present application: in the S6, the process of calculating the likelihood score of each candidate future evolution chain is: According to the state evolution sequence of the candidate future evolution chain, a predicted clinical event type sequence is mapped out, the event type distribution, the average time interval between adjacent events, and the occurrence frequency of specific event combinations of the sequence are counted, the historical event type distribution, the historical average time interval, and the historical combination frequency corresponding to the target patient discrete clinical event sequence are obtained, the first compliance value between the predicted and historical event type distributions is calculated, the inverse of the difference between the predicted and historical average time intervals is taken as the second compliance value, and the average value of the inverse of the difference between the predicted and historical frequencies of each specific event combination is taken as the third compliance value. The trajectory curvature value and the total length value of the evolution chain in the physiological state space are calculated, the first, second, and third compliance values, the inverse of the curvature value, and the inverse of the total length value are multiplied by the preset weight coefficients respectively, and then summed to obtain the likelihood score.
[0015] As a further scheme of the present application: in the S6, the process of sorting and screening according to the score and outputting the path set is: Set a minimum score threshold, compare the likelihood score of each candidate future evolution chain with the threshold, and remove all evolution chains with a score below the threshold, check the end point attribute label of each remaining evolution chain, classify the evolution chains labeled as atrial fibrillation recurrence into a first subset, and classify the evolution chains labeled as long-term stability into a second subset, sort the evolution chains in the first subset and the second subset in descending order according to their likelihood scores, select the top M evolution chains from the sorted first subset, and select the top K evolution chains from the sorted second subset, wherein M and K are both preset positive integers, and combine all selected evolution chains into the final output personalized recurrence risk prediction path set.
[0016] The present application has the following advantages: This invention constructs an event-driven latent state inference model, enabling the reverse reconstruction of continuous intrinsic physiological state time-series paths from sparse, asynchronous, and discrete clinical event records after patient surgery. This transforms easily obtainable symptoms, medications, and examination conclusions from routine follow-ups into quantifiable and analyzable state evolution trajectories. Furthermore, by identifying key recovery stages within these trajectories and performing structural similarity retrieval and matching within a pre-constructed population recovery process atlas, the current recovery segment of an individual can be precisely located within a massive historical patient evolution network. Building upon this, by extracting historical subsequent stage chains similar to the current stage and mapping them back to a unified physiological state space to form multiple candidate future evolution chains, a multi-dimensional and visualized inference of the individual's possible recovery paths is achieved. Finally, by integrating the statistical characteristics of the patient's historical event sequence with the geometric properties of the candidate evolution chains for likelihood calculation and screening, a highly personalized set of recurrence risk prediction paths is output.
[0017] This invention fundamentally overcomes the dependence of existing technologies on expensive continuous monitoring equipment and makes full use of the temporal logic and state correlations that are often overlooked in routine medical data, providing a new approach for dynamic prediction of atrial fibrillation recurrence risk that is feasible, individually adaptable, and temporally interpretable. Attached Figure Description
[0018] The invention will now be further described with reference to the accompanying drawings.
[0019] Figure 1 This is a flowchart illustrating the present invention. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] Please see Figure 1 As shown, this invention is an artificial intelligence-based method for predicting atrial fibrillation recurrence, comprising the following steps: S1. Input the discrete clinical event sequence recorded after the target patient's self-ablation, including symptom records, medication change records, and heart rhythm conclusion records. Each record is accompanied by an event timestamp and text description. S2. Input the discrete clinical event sequence into the event-driven hidden state deduction model. The model outputs an intrinsic physiological state time sequence path that evolves from the initial postoperative state to the current state in the preset physiological state space. S3. Based on the distribution density and transfer direction of state points in the intrinsic physiological state time-series path, identify multiple recovery stages with different evolution patterns, and generate a corresponding stage feature vector for each recovery stage. S4. Using the last recovery stage as the query stage, retrieve all historical recovery stages whose feature vector similarity exceeds a set threshold from the pre-constructed population recovery process map. S5. For each historical recovery stage, traverse backwards in chronological order until a node with atrial fibrillation recurrence marker or long-term stability marker is reached to obtain a complete chain of subsequent stages. Map each chain of subsequent stages back to the physiological state space to form multiple candidate future evolution chains starting from the current state. S6. Based on the event type distribution and time interval characteristics of the discrete clinical event sequence, calculate the likelihood score of each candidate future evolution chain, sort and filter all candidate future evolution chains according to the score, and output a personalized relapse risk prediction path set.
[0022] In a preferred embodiment of the present invention, the operation process of the event-driven hidden state deduction model in step S2 is as follows: The core task of the event-driven latent state inference model is to infer a continuous, smooth physiological state evolution path that can reasonably explain the occurrence of all events based solely on a series of discrete and asynchronous clinical events recorded by the target patient over time after ablation.
[0023] First, the carrier of the model's operation needs to be clearly defined, namely the physiological state space. This space is not directly observable, but rather an artificially constructed mathematical framework used to characterize the patient's internal physiological state. In this embodiment, it is defined as a 50-dimensional continuous real-number vector space. Each of these 50 dimensions corresponds to an abstract, potential physiological factor. These factors are internal variables of the model, and their specific physical meaning is not predetermined, but can be understood as comprehensively representing complex physiological conditions that cannot be directly measured, such as "atrial electrical stability," "autonomic nerve tension," "myocardial tissue inflammation level," and "drug serum concentration effect." The initial state of the model, i.e., the hypothetical internal state immediately after ablation, is assigned a preset initial state vector, such as a vector with all dimensions having a value of 0.1, representing a neutral, undifferentiated initial recovery starting point.
[0024] The basic unit of data processed by the model is a set of discrete clinical event records strictly ordered by timestamps. Each record contains an event type (e.g., "palpitation," "taking amiodarone," "24-hour ECG shows increased premature atrial contractions") and its textual description. The model works by sequentially "digesting" these events and continuously adjusting its estimates of the patient's intrinsic physiological state. The process is an iterative forward prediction and backward correction loop.
[0025] When processing the t-th event record, the model calculates a predicted probability distribution based on the best estimated vector (denoted as ht) of the intrinsic physiological state at time t, using a multi-layer neural network. This distribution covers all possible clinical event types (e.g., a pre-defined dictionary containing 15 common events), outputting the likelihood probability of each event occurring in state ht. For example, the model might calculate that in state ht, the probability of "reporting palpitations" is 0.05, the probability of "recording atrial tachycardia" is 0.02, and the probability of "no special event recorded" is 0.93, etc.
[0026] Next, the model compares this predicted probability distribution with the actual event type in the t-th record. The actual event is represented as a one-hot encoded vector, with 1 only at the position corresponding to the event type and 0 otherwise. The difference between the two is calculated using the cross-entropy loss function; this difference quantifies the degree of "error" in the model's prediction based on the current state estimate.
[0027] However, the descriptive text of clinical events carries important information. For example, while "mild palpitations" and "persistent, severe palpitations" both belong to the "palpitations" category, they imply different levels of severity. To address this, the model integrates a text encoder (e.g., a lightweight, fine-tuned version of a pre-trained BERT model) to process the event description text and generate a fixed-length event strength vector. This vector transforms the qualitative description in the text into a 32-dimensional real-valued vector, quantifying the semantic strength and potential clinical weight of the event. This vector will participate in subsequent state adjustments.
[0028] The calculated prediction discrepancy and event intensity vector together drive the model to make a crucial backpropagation adjustment to the state estimate. The core idea of this adjustment process is that since the current state estimate ht leads to a prediction that doesn't match the actual situation, not only might ht need correction, but the previous state h{t-1} that caused the patient to evolve to ht may also be responsible. Therefore, the adjustment will simultaneously apply to the state vectors at the current time t and the previous time t-1. The magnitude and direction of the adjustment are determined by the gradient of the prediction discrepancy and the event intensity vector, implemented through the backpropagation algorithm. Specifically, the model calculates how the state vectors ht and h{t-1} should be fine-tuned to reduce the current prediction error. After adjustment, ht is updated, and this updated ht will serve as the starting point for the "current estimated state" when processing the next event record.
[0029] To systematically and optimally implement the aforementioned "correcting past states based on future observations" reverse adjustment mechanism, this implementation employs a specific neural network architecture based on variational inference. This architecture comprises two core components: a forward state transition network and a reverse inference network.
[0030] The forward state transition network is responsible for characterizing the intrinsic dynamics of physiological state evolution. It simulates how physiological states naturally evolve over time without external intervention. The network takes the adjusted previous-time state vector h{t-1} (from the previous adjustment) as input and outputs a probability distribution describing the prior estimates of all possible states starting from h{t-1} at the next time step. This enforces the smoothness and continuity of the state path, preventing unreasonable abrupt changes in states between adjacent time steps.
[0031] The backpropagation network is responsible for inferring the most likely state based on the actual observed events. It takes the event data observed at the current time, i.e., the concatenation of the event type one-hot encoding and the event intensity vector, as input and outputs a probability distribution that describes the posterior estimate of the possible states at the current time given the current observations.
[0032] The optimization goal of model training is to make the probability distributions output by the two networks as consistent as possible. A specific metric is KL divergence. KL divergence measures the information difference between the prior distribution (from the feedforward network, based on historical states) and the posterior distribution (from the backpropagation network, based on current observations). The training process uses gradient descent to minimize the sum of the KL divergences at all event time steps. This means that the parameters learned by the model will achieve a dynamic balance between: 1. the future state prior predicted from historical states, and 2. the state posterior inferred from actual observed events. Ultimately, the feedforward network learns state transition patterns that conform to physiological laws, and the backpropagation network learns precise mappings of state information decoded from events.
[0033] After model training, the actual simulation process is as follows: Starting from the initial state vector, events are read in chronological order. For each event, the feedforward network provides a prior "predicted state" based on the previous state, while the backpropagation network provides a posterior "explained state" based on the current event. Then, the model calculates a weighted fusion of these two states (the weights can be dynamically determined by KL divergence or other confidence metrics) to form the final estimate of the state vector at that moment. This estimate respects the continuity of state evolution (from the prior) and faithfully reflects the observed information of the current event (from the posterior). This process is continued event by event, and finally, the fused state vectors at all moments are connected in chronological order to obtain the "intrinsic physiological state temporal path." This path is a continuously changing trajectory in 50-dimensional space, where each fluctuation and turn is driven and explained by the specific clinical event sequence input, thus transforming the discrete event point sequence into a continuous state evolution curve.
[0034] In another preferred embodiment of the present invention, the process of identifying the recovery phase and generating a phase feature vector in step S3 is as follows: The purpose of this step is to automatically segment the continuous intrinsic physiological state timeline into multiple continuous segments with a consistent physiological pattern. Each segment is called a recovery stage, and a fixed-dimensional feature vector, i.e., a stage feature vector, is generated for each stage to comprehensively and quantitatively characterize its properties.
[0035] First, the input is the time-series path of the target patient's intrinsic physiological state obtained in step S2. This path consists of a series of state vectors sampled at fixed time intervals. Each state vector is a 50-dimensional real-valued vector representing the patient's potential physiological state at that sampling moment. For example, if the sampling interval is one day, the path is a time series of a 50-dimensional vector for each day.
[0036] To delineate meaningful stages from a continuous path, a sliding window of fixed time length is used to traverse and analyze the path. The length of the sliding window needs to be set based on prior clinical knowledge, for example, 30 days. This means that each window covers 30 consecutive state vectors, corresponding to a 30-day observation period. The sliding step size of the window is set to 7 days, allowing for a 23-day overlap between adjacent windows. This improves the robustness of stage boundary detection and avoids missing boundaries due to the randomness of window division.
[0037] For each sliding window, two core calculations are performed. The first is to calculate the window center point vector. Specifically, this is done by calculating the arithmetic mean of all state vectors contained within the window in each dimension, resulting in a 50-dimensional mean vector. This vector represents the average level of the patient's physiological state during the window period. The second is to calculate the variance of the state points within the window in each dimension, i.e., calculating the variance of all state values in each dimension, resulting in a 50-dimensional variance vector. This vector reflects the volatility or stability of the patient's physiological state across various underlying physiological factors during the window period.
[0038] Next, stage boundaries are detected based on the center point vector and variance vector of two consecutive sliding windows. Two decision criteria are introduced here.
[0039] The first criterion is a stage transition criterion based on center point displacement. The Euclidean distance between the center point vectors of two consecutive windows is calculated. Euclidean distance measures the overall shift in the average state level between two time periods. A stage transition distance threshold is set; for example, this threshold can be obtained by analyzing the distribution of center point distances across all windows in historical data and taking the 85th percentile. When the calculated Euclidean distance exceeds this threshold, a significant physiological state pattern shift is considered to have occurred between the two windows, and therefore the start time point of the current window is recorded as a candidate stage boundary point.
[0040] The second criterion is a stage transition criterion based on variance stability. The variance change rate is calculated for two consecutive windows. Specifically, the absolute difference between the two variance vectors in each dimension is calculated first, then these differences are summed, and finally divided by the sum of the variance vectors in the previous window for normalization. The variance change rate quantifies the severity of state volatility changes. A variance stability threshold is set, for example, the 90th percentile of the historical variance change rate distribution. When the calculated variance change rate exceeds this threshold, it means that the instability of the state has jumped. Even if the average level change is not large, it may mark the beginning of a new stage. Therefore, the starting point of the current window is also recorded as a candidate boundary point.
[0041] After traversing the entire path, a series of candidate boundary points that may be densely distributed in time will be obtained. To obtain a reasonable stage division, boundary point merging and filtering are required. A minimum stage duration is set, for example, 14 days. If the time interval between two candidate boundary points is less than this minimum, they are merged into a single boundary point, usually taking the midpoint as the final boundary. This operation ensures that each stage has a clinically interpretable minimum length.
[0042] Based on the final determined sequence of boundary points, the original intrinsic physiological state time path is divided into multiple consecutive time segments, each of which is defined as a recovery phase.
[0043] For each identified recovery stage, a high-dimensional feature vector needs to be constructed to uniquely represent it. The stage feature vector is composed of five components, as follows.
[0044] The first part is the mean vector of all state points within this stage across all dimensions. The state vectors at all sampling times covered by this stage are calculated, and their averages are taken across all 50 dimensions, resulting in a 50-dimensional vector. This vector summarizes the baseline level of physiological state during this stage.
[0045] The second part is the standard deviation vector of all state points in each dimension within this stage. Calculating the standard deviation of the state vector in each dimension within this stage yields another 50-dimensional vector. This characterizes the fluctuation range and stability of the physiological state during this stage.
[0046] The third part is the duration of this phase, expressed as a scalar. For example, if a phase lasts 45 days, it is recorded as the value 45. It reflects the time span of the pattern's duration.
[0047] The fourth part is the difference vector between the initial and final state vectors of this stage. Subtracting the initial state vector from the final state vector of the stage yields a 50-dimensional vector. This vector describes the overall trend and magnitude of the patient's physiological changes during this stage.
[0048] The fifth part is the aggregated vector of clinical event types occurring within this phase. First, a dictionary containing 15 common postoperative clinical events is defined, each event corresponding to a unique index. For each clinical event recorded within this phase, a 15-dimensional one-hot encoded vector is generated based on its event type, i.e., 1 at the event type index and 0 at the rest. Then, the one-hot encoded vectors of all events within this phase are summed element-wise to obtain a 15-dimensional integer vector. Each element of this vector represents the frequency of the corresponding event type occurring within this phase, recording external clinical observations accompanying the evolution of the physiological state.
[0049] Finally, the five parts mentioned above are connected in sequence to form a stage feature vector with a total dimension of 166 (50 + 50 + 1 + 50 + 15). This vector provides a comprehensive digital description of the recovery stage from five aspects: average state level, volatility, time length, trend of change, and accompanying events, providing a solid foundation for subsequent similarity retrieval.
[0050] In another preferred embodiment of the present invention, the process of retrieving historical recovery stages in the population recovery process map in step S4 is as follows: The goal of this step is to find a series of historical recovery stages that are highly similar in feature structure for the current patient's last recovery stage, i.e., the query stage, in the pre-generated and stored population recovery process map, as a reference for subsequent inference of future paths.
[0051] First, the construction and data structure of the population recovery process graph are described. This graph is a directed weighted graph, constructed based on a large-scale dataset of historical patients. For each historical patient, steps S2 and S3 are executed to obtain a sequence of recovery stages and a 166-dimensional stage feature vector for each stage. In the graph, a node is created for each recovery stage of a historical patient. The attributes stored in the node mainly include: the stage feature vector, the patient's anonymous unique identifier, and the sequential number of that stage in the patient's own recovery process. Edges in the graph are used to represent the temporal evolution relationship between stages. For the same historical patient, a directed edge is established between every two adjacent stage nodes according to the chronological order of their recovery stages, pointing from the previous stage to the next. Each edge is accompanied by a weight value, which is defined as the cosine similarity between the stage feature vectors of the two connected nodes. The cosine similarity is obtained by calculating the cosine of the angle between two 166-dimensional vectors, ranging from -1 to +1; a larger value indicates a greater similarity in the feature patterns of the two stages. Through this construction method, the graph not only gathers the static features of all stages in the population, but also encodes the similarity relationships of dynamic transitions between stages.
[0052] The retrieval process employs a two-stage screening strategy to balance efficiency and accuracy.
[0053] The first stage is preliminary retrieval, based on the direct similarity of feature vectors. Given the current patient's query stage Q, its stage feature vector is denoted as Vq. For each node in the atlas, the cosine similarity between the node's stored feature vector Vn and Vq is calculated. A retrieval threshold is set, for example, 0.85. All nodes whose cosine similarity calculation results exceed this threshold are selected, forming the preliminary retrieval result set. This set contains a group of historical stages that are closest to the query stage in the feature space direction.
[0054] The second stage involves refined screening, introducing contextual matching to improve retrieval accuracy. Considering the continuous evolution of physiological states, the validity of a stage partly depends on its predecessor stage. Therefore, it is necessary to evaluate the contextual consistency between the local path of each node in the preliminary retrieval results and the path of the query stage. For each node N in the preliminary retrieval result set, the following operations are performed: First, find the predecessor node P of node N in the graph, i.e., the node directly pointing to N via a directed edge. If N is the first stage of a patient, then P is empty. Simultaneously, obtain the previous recovery stage Qprev and its feature vector of the current patient's query stage Q. Next, calculate the contextual matching. If both P and Qprev exist, calculate the cosine similarity between the feature vectors of P and Qprev as the matching score. If neither P nor Qprev exists, set the matching score to a default value, such as 0.5. Then, perform a fusion score. The cosine similarity between node N and query stage Q is denoted as the direct similarity Sdir, and the calculated contextual matching score is denoted as Sctx. A weighted summation method is used to calculate the comprehensive score ScoreN for node N, with the formula ScoreN = w1 × Sdir + w2 × Sctx. The weight coefficients w1 and w2 are preset values, for example, set to 0.7 and 0.3 respectively, to assign higher weight to direct similarity. Finally, all nodes in the initial search results are sorted in descending order based on the comprehensive score, and the top K nodes with the highest rankings are selected, where K is a preset value, for example, 10, to form the final retrieved historical recovery stage set.
[0055] In another preferred embodiment of the present invention, the process of obtaining a complete chain of subsequent stages in S5 is as follows: First, input the set of historical recovery stages retrieved in step S4. Each element in this set corresponds to a specific node in the graph, which serves as the starting node for subsequent traversals. The population recovery process graph is essentially a large knowledge network storing a vast amount of historical patient recovery stages and their transition relationships. Each node in the graph stores not only a 166-dimensional stage feature vector but also several attribute labels. Among these, two key terminal labels are the "atrial fibrillation recurrence label" and the "long-term stability label." When a historical patient's follow-up outcome is clearly determined to be atrial fibrillation recurrence, the last stage node in their recovery stage sequence associated with the recurrence event time is assigned the "atrial fibrillation recurrence label." Similarly, if a patient has no recurrence during long-term follow-up after surgery (e.g., more than 2 years), their recorded last stage node is assigned the "long-term stability label." These two labels provide a clear clinical outcome indication for each historical path.
[0056] The operation to obtain the subsequent stage chain involves performing a depth-first, time-oriented path traversal in the graph, with each starting node as the root. The specific algorithm is as follows: 1. Location and Initialization: The graph node corresponding to a certain historical recovery stage is formally set as the "starting node" for the current traversal. An empty linked list is created to store the node sequence that makes up the chain, and the starting node is added to the linked list as the first element.
[0057] 2. Backward Traversal and Condition Check: Starting from the starting node, examine all directed edges emanating from that node. These directed edges represent the possibility of evolution from the current stage to the next. Since the graph is constructed strictly in chronological order connecting different stages of the same patient, any edge emanating from a node will point to a node that is later in time. Select the only directed edge emanating from that node (because the stage order of the same patient is fixed) and visit the "next node" it points to. When visiting this node, the core operation is to check its attribute fields. The program will read the node's attribute list and query whether it contains a Boolean flag for "atrial fibrillation recurrence" or "long-term stability".
[0058] 3. Recursive Extension and Termination: If the currently visited node does not contain any of the aforementioned termination markers, it indicates that the node is merely an intermediate recovery stage. In this case, append the node to the aforementioned linked list and use it as the new current node. Repeat step 2 to continue visiting its next node. This process repeats continuously, forming a traversal process that jumps through stages along the timeline.
[0059] 4. Path Completion: When a node is visited, if its attributes are checked and it contains either a "relapse marker" or a "long-term stable marker," the traversal immediately stops. At this point, the node with the termination marker is added to the end of the linked list as the "terminal node." Thus, the sequence of nodes stored in the linked list in the order of visit constitutes a complete evolutionary path starting from the initial node (a similar historical stage), going through several intermediate stages, and finally reaching a clear clinical outcome (relapse or stability). We define this as a "subsequent stage chain."
[0060] For example, suppose we retrieve a historical stage node A. Starting from A, we traverse through nodes B and C, finally reaching node D. Upon inspection, node D carries a "atrial fibrillation recurrence marker." Then, the node sequence A, B, C, and D constitutes a complete chain of subsequent stages, demonstrating the specific process of a historical patient similar to the current patient's final stage, who subsequently experienced the intermediate stages B and C before ultimately relapsing. For each historical stage node in the search result set, we independently perform the above traversal process once, thus obtaining multiple chains of subsequent stages equal to the number of search results. These chains serve as the initial blueprint for constructing the predicted trajectory.
[0061] In S5, the process of forming multiple candidate future evolution chains starting from the current state is as follows: The purpose of this process is to restore and convert the "subsequent stage chain" obtained in the previous step, which is represented by a discrete stage node sequence, into a smooth trajectory in a continuous physiological state space, and then extend it from the patient's current state point through geometric transformation, ultimately forming a candidate future evolution chain that can be directly used for risk analysis.
[0062] First, the discrete stage representation of the chain needs to be transformed into a continuous trajectory. For a given chain of subsequent stages, it contains N nodes, corresponding to N historical recovery stages. In the 166-dimensional stage feature vector stored in each node, the first 50 dimensions are the mean vector of the state points of that stage, and the next dimension is the duration of that stage (in days). These two components are crucial.
[0063] 1. Trajectory Segment Generation: For the i-th node in the chain, extract its state point mean vector Mi (50-dimensional) and stage duration Ti (scalar, e.g., 28 days). In the physiological state space, the coordinates of the mean vector Mi represent the "central position" of the physiological state in this stage. We will construct a continuous trajectory segment representing the state evolution of this stage, with Mi as the geometric center. Specifically, we consider the time interval of this duration Ti as the domain, assuming that the state fluctuates slightly around the center Mi in a smooth manner within this stage. A simplified implementation model is to generate a smooth curve from the virtual starting point to the virtual ending point within this time interval, such that the state value at the midpoint of the time interval is exactly equal to Mi, and the average state value throughout the interval also approximates Mi. This can be achieved by constructing a bell-shaped curve or polynomial curve of appropriate amplitude with the midpoint of time as the center of symmetry, and superimposing it on the constant vector Mi. Ultimately, this trajectory segment is composed of a series of discrete time-state coordinate points. For example, if sampling is done at a 1-day interval, and Ti is 28 days, then 28 state points are generated. The set of these points in the state space appears as a smooth segment closely distributed around the center Mi.
[0064] 2. Segment Joining and Smoothing: Following the chain node order, the trajectory segments generated in stage i and stage i+1 are joined end-to-end on the timeline. However, direct joining may result in unnatural sharp turns or jumps in the trajectory at stage boundaries because the centers Mi and M{i+1} of the two stages may be different. To simulate a more natural transition between stages, spatial interpolation smoothing is required based on the weights of the directed edges connecting the two nodes in the graph. The edge weight (denoted as W) is the cosine similarity of the feature vectors of the two node stages, ranging from 0 to 1. A larger value indicates a more similar pattern between the two stages, and theoretically, the state transition should be smoother. Smoothing is performed within a time window near the joining point (e.g., the last 7 days of the previous segment and the first 7 days of the next segment). We use a cubic Hermitian interpolation function, adjusting the interpolation "tension" parameter based on the weight W. A higher W value allows for a larger tension parameter setting, making the interpolation curve more linear and gradual in the transition region. A lower W value allows for a greater curvature in the transition curve, enabling a faster transition from one state center to another. Through this process, two originally separate trajectory segments are merged into a single, continuous, and first-order smooth trajectory (i.e., the tangent direction changes continuously). This operation is repeated for all adjacent segments in the chain, ultimately resulting in a trajectory that represents the complete evolutionary history of the subsequent stage of the chain and extends continuously in the physiological state space; this is called the "initial trajectory."
[0065] However, the starting coordinates of this initial trajectory are the state center M1 of the first historical stage in the first subsequent stage chain (i.e., the stage similar to the final stage of our current patient). This coordinate lies within the state space of the historical patient itself. To predict the future of the current patient using this coordinate, spatial alignment is necessary.
[0066] 3. Coordinate Translation and Alignment: This is the crucial step in "grafting" the historical trajectory onto the current patient's state space. Let the starting point coordinates of the initial trajectory be Pstart (a 50-dimensional vector). Let the latest intrinsic physiological state vector obtained by the current patient through step S2 be Pcurrent (also a 50-dimensional vector), which represents the patient's physiological state coordinates "at this moment". Calculate the translation vector Voffset = Pcurrent - Pstart. This is a vector difference that indicates the direction and distance from the starting point of the historical trajectory to the current patient's state point. Then, for the coordinates of each sampling point on the initial trajectory (assuming there are L points), perform the following operation: For the coordinates Pj of the j-th point, calculate the new aligned coordinates Pj' = Pj + Voffset. This means that the entire historical trajectory has been rigidly translated, so that the starting point of the translated trajectory completely coincides with the current patient's state point Pcurrent.
[0067] 4. Generating Candidate Evolutionary Chains: After coordinate translation and alignment, the resulting new trajectory aligns its temporal starting point with the "present" and its spatial starting point with the patient's current state. This trajectory describes a possible future path starting from the current state, mimicking the morphological and evolutionary pattern of a specific subsequent historical stage chain. We formally label this processed trajectory as a "candidate future evolutionary chain." Its prediction of future states covers the total time elapsed from the current moment until its corresponding historical outcome (relapse or stabilization).
[0068] Finally, for each subsequent stage chain derived from each historical recovery stage retrieved in step S4, the entire process of trajectory segment generation, splicing smoothing, and coordinate translation alignment described above is performed independently and completely. Assuming 10 similar historical stages are retrieved, with each stage deriving one subsequent stage chain, then 10 candidate future evolution chains will be generated. This set of chains constitutes a diverse, data-driven, and visualized projection of the current patient's possible future fate, providing direct input for the final probability calculation and risk path selection. Each chain is a concrete and clear computable path in a 50-dimensional physiological state space, pointing from the known present to the unknown future.
[0069] In another preferred embodiment of the present invention, the process of calculating the likelihood score of each candidate future evolution chain in S6 is as follows: Likelihood score is a comprehensive metric used to quantify the degree to which a candidate future evolutionary path matches the target patient's personal historical behavioral patterns, while also considering the geometric plausibility of the evolutionary path within the physiological state space. A higher score indicates that the predicted path is more likely to reflect the patient's true future evolutionary trend. Its calculation integrates information from two dimensions: event sequence consistency and trajectory geometric characteristics.
[0070] The first dimension assesses the alignment between the predicted event sequence and the patient's historical patterns. Each candidate future evolutionary chain is essentially a continuous trajectory in a 50-dimensional physiological state space. To evaluate its plausibility, this abstract state trajectory must first be "translated" back into a clinically understandable observational level, i.e., predicting the sequence of clinical events that may accompany its evolution. This is achieved through a pre-trained "state-event decoder." This decoder is a neural network model whose input is a physiological state vector, and whose output is the probability distribution of various clinical event types occurring in that state. Along the trajectory of the candidate evolutionary chain, state points are sampled at fixed time intervals (e.g., every 7 days). The state vector of each sampled point is input into the decoder, and the event type with the highest output probability is selected as the predicted event at that time point. Arranging the predicted events of all sampled points along the entire trajectory in chronological order yields a "predicted clinical event type sequence."
[0071] Next, we compare this predicted sequence with the patient's actual historical event sequence using three specific statistical features. First is the event type distribution. We statistically analyze the frequency of each of the 15 predefined event types in the predicted sequence, forming a 15-dimensional predicted distribution vector Ptype. Similarly, we statistically analyze the frequency of each type of event in the target patient's existing discrete clinical event sequences, forming a historical distribution vector Htype. We then calculate the cosine similarity between these two vectors, a value ranging from 0 to 1. A value closer to 1 indicates a greater similarity between the predicted event type composition and the patient's historical habits. This calculation result is called the first degree of consistency value F1.
[0072] Secondly, the average time interval between adjacent events is calculated. The average number of days between any two consecutive events in the predicted event sequence is denoted as Ipred. The average interval between adjacent events in the patient's historical event sequence is denoted as Ihist. The absolute value of the difference between these two average intervals, Dinterval, is equal to the absolute value of Ipred minus the absolute value of Ihist. Patients have individual preferences regarding event density; the smaller the difference in intervals, the more the predicted rhythm matches the individual pattern. The reciprocal of this difference is used to measure the degree of agreement, i.e., the second degree of agreement value F2 is equal to 1.0 divided by (Dinterval plus a very small constant, such as 0.01, to prevent division by zero errors). The larger the F2 value, the closer the predicted event rhythm is to the patient's historical rhythm.
[0073] Thirdly, the frequency of specific event combinations is considered. Based on clinical knowledge, a set of clinically relevant event combinations is defined. For example, "recording palpitation symptoms" and "adding antiarrhythmic medication within the next 7 days" are considered combination A, and "recording an increase in premature atrial contractions" and "re-examining an electrocardiogram within the next 14 days" are considered combination B. The frequency of each specific combination in the predicted event sequence is statistically analyzed to obtain a combination frequency vector Pcombo. Similarly, the frequency of these combinations in the historical sequence is statistically analyzed to obtain Hcombo. For each combination k, the absolute value Dcombok of the difference between its predicted frequency and historical frequency is calculated. Similarly, the consistency component Ck of each combination is calculated as 1.0 divided by (Dcombok plus 0.01). Finally, the arithmetic mean of Ck for all combinations is taken to obtain the third consistency value F3. F3 reflects the degree of matching between the association pattern between key clinical events in the predicted event sequence and the patient's historical pattern.
[0074] The second dimension assesses the geometric characteristics of the evolutionary chain trajectory itself. A reasonable physiological state evolution path should be relatively smooth in state space, without violent oscillations or unnecessary detours. To this end, two geometric metrics are introduced. The first is the trajectory curvature value. Curvature is a quantity in calculus describing the degree of bending of a curve. For the spatial path of the candidate evolutionary chain, which consists of discrete sampling points, an approximate method is used to calculate its average curvature. Specifically, for three consecutive sampling points on the trajectory, the curvature of the arc they form can be calculated. The curvature of all three consecutive point windows on the entire trajectory is calculated and averaged to obtain the average curvature value of the chain, Curvature. The larger the value, the sharper the trajectory turns, and the more unstable the evolution process may be. The second is the total path length value. The sum of the lengths of the line segments between all consecutive sampling points on the trajectory is calculated to obtain PathLength. This value measures the overall magnitude of state evolution. Within the same time span, an excessively long path may indicate that the state has undergone unnecessary frequent fluctuations or large-scale reversals in space.
[0075] Directly using compliance values F1, F2, F3, curvature, and path length is inconvenient because they have different dimensions and meanings, and their contributions to "reasonableness" are inconsistent. F1, F2, and F3 are better the higher they are, while Curvature and PathLength are better the lower they are. Therefore, standardization and homogenization are necessary. For curvature and path length, their reciprocals are taken, making them also better the higher they are; that is, InvCurv equals 1.0 divided by Curvature, and InvLen equals 1.0 divided by PathLength. To prevent extreme values, Curvature and PathLength are smoothed before calculating the reciprocals, for example, by adding a baseline value.
[0076] Next, pre-defined weight coefficients are assigned to these five positiveized indicators to reflect their relative importance in the comprehensive evaluation. These weight coefficients are based on statistical analysis of historical data. For example, a feasible weight allocation is: event type distribution conformity weight W1 = 0.30, event interval conformity weight W2 = 0.25, event combination conformity weight W3 = 0.20, trajectory curvature reciprocal weight W4 = 0.15, and path length reciprocal weight W5 = 0.10. The sum of all weights is 1.0. Finally, the likelihood score Scorech of a candidate evolutionary chain Ch is calculated using the formula: Scorech = W1 × F1 + W2 × F2 + W3 × F3 + W4 × InvCurv + W5 × InvLen. This weighted summation yields a comprehensive score between 0 and 1, which quantitatively evaluates each candidate chain from two aspects: the conformity of event prediction to individual habits and the smoothness and rationality of the trajectory spatial morphology.
[0077] In step S6, the process of sorting, filtering, and outputting the path set based on the scores is as follows: The first step is to set a quality threshold, i.e., a minimum score threshold. This threshold can be determined by analyzing historical validation data. For example, the scores of candidate chains generated from all historical patient data can be sorted, and the 20th percentile can be used as the threshold Tmin, which might be 0.65. The score of each candidate evolutionary chain is compared with Tmin. If a chain's score is lower than Tmin, it is considered to have too low a match with the patient's individual pattern or that the trajectory morphology is too unreasonable, and it is removed. This step filters out obviously unreliable noisy predictions.
[0078] The second step is to classify and sort the remaining evolutionary chains that have passed the threshold screening. Each chain inherits from its original historical subsequent stage chain, and therefore naturally carries the outcome label of its terminal node, namely "atrial fibrillation recurrence" or "long-term stability". Examining the terminal attributes of all remaining chains, they are clearly divided into two mutually exclusive subsets: the first subset contains all evolutionary chains with the endpoint labeled as atrial fibrillation recurrence, representing the path predicted to lead to recurrence; the second subset contains all evolutionary chains with the endpoint labeled as long-term stability, representing the path predicted to lead to stability. This classification intuitively demonstrates the probability of the two main future outcomes.
[0079] Next, within each subset, the chains are sorted in descending order based on their likelihood scores. In the first subset (relapse group), the chain with the highest score is ranked first, representing the path that best matches the patient's personal history and has the most reasonable trajectory among all predicted relapse paths, and is therefore the high-risk path that requires the most attention. The same descending order is applied within the second subset (stable group).
[0080] The third step is quota selection. To avoid information overload caused by too many output paths, it is necessary to select a number of the most representative paths from each subset. Two positive integers, M and K, are set, for example, M equals 3 and K equals 2. This means selecting the top 3 evolutionary chains in terms of score from the relapse group and the top 2 evolutionary chains in terms of score from the stable group. The values of M and K can be adjusted according to different clinical emphases on risk warning or reassurance.
[0081] Finally, the selected M relapse prediction chains and K stability prediction chains are merged to form the final "personalized relapse risk prediction pathway set." This set typically contains about five pathways with high individual likelihood, clearly distinguishing between relapse and stability outcomes, and providing several representative evolutionary trajectories for each outcome. This pathway set is output in a visualized graphical and data format, providing clinicians with a data-driven, highly personalized, and rigorously rationally screened blueprint for future risk evolution, directly supporting precise clinical decisions regarding enhanced monitoring, treatment adjustments, or reassurance.
[0082] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.
Claims
1. An artificial intelligence-based method for predicting atrial fibrillation recurrence, characterized in that, Includes the following steps: S1. Input the discrete clinical event sequence recorded after the target patient's self-ablation, including symptom records, medication change records, and heart rhythm conclusion records. Each record is accompanied by an event timestamp and text description. S2. Input the discrete clinical event sequence into the event-driven hidden state deduction model. The model outputs an intrinsic physiological state time sequence path that evolves from the initial postoperative state to the current state in the preset physiological state space. S3. Based on the distribution density and transfer direction of state points in the intrinsic physiological state time-series path, identify multiple recovery stages with different evolution patterns, and generate a corresponding stage feature vector for each recovery stage. S4. Using the last recovery stage as the query stage, retrieve all historical recovery stages whose feature vector similarity exceeds a set threshold from the pre-constructed population recovery process map. S5. For each historical recovery stage, traverse backwards in chronological order until a node with atrial fibrillation recurrence marker or long-term stability marker is reached to obtain a complete chain of subsequent stages. Map each chain of subsequent stages back to the physiological state space to form multiple candidate future evolution chains starting from the current state. S6. Based on the event type distribution and time interval characteristics of the discrete clinical event sequence, calculate the likelihood score of each candidate future evolution chain, sort and filter all candidate future evolution chains according to the score, and output a personalized relapse risk prediction path set.
2. The atrial fibrillation recurrence prediction method based on artificial intelligence according to claim 1, characterized in that, In S2, the operation process of the event-driven hidden state deduction model is as follows: The physiological state space is defined as a multidimensional continuous vector space, where each dimension corresponds to a potential physiological factor. A preset initial state vector is assigned to the initial moment after ablation. Each record in the discrete clinical event sequence is iteratively processed according to the timestamp order. When processing a single record, the predicted probability distribution of various clinical events is calculated based on the currently estimated state vector. The difference between the predicted probability distribution and the actual event type is calculated. The text description of the current event record is encoded to obtain the event intensity vector. Based on the difference and the event intensity vector, the estimated values of the state vector at the current time and the previous time are adjusted in reverse. After processing all event records, the intrinsic physiological state time sequence path is output.
3. The atrial fibrillation recurrence prediction method based on artificial intelligence according to claim 2, characterized in that, The process of adjusting the state vector estimate in reverse based on the difference and the event intensity vector is as follows: Construct a forward state transition network that takes a state vector as input and outputs the transition probability of the state vector. Construct a backward inference network that takes clinical event observation data as input and outputs the inference probability of the state vector. The current state vector before adjustment is input into the forward state transition network to obtain the prior state estimation probability distribution. The actual type and event intensity vector of the current event record are input into the backward inference network to obtain the posterior state estimation probability distribution. The KL divergence between the prior state estimation probability distribution and the posterior state estimation probability distribution is calculated. The gradient of the parameters of the forward state transition network and the backward inference network is calculated based on the KL divergence. The parameters of the forward state transition network and the backward inference network are updated along the gradient direction.
4. The atrial fibrillation recurrence prediction method based on artificial intelligence according to claim 1, characterized in that, In step S3, the process of identifying the recovery phase and generating the phase feature vector is as follows: In the physiological state space, a fixed-length sliding window is used to traverse the intrinsic physiological state time sequence path. The mean vector of all state points in each sliding window is calculated as the center point of the window. The variance of the state points in each sliding window in each dimension is calculated. When the Euclidean distance between the center points of two consecutive sliding windows exceeds the stage transition distance threshold, the stage boundary point is recorded at the beginning position of the window. When the variance change rate of two consecutive sliding windows exceeds the variance stability threshold, the stage boundary point is recorded at the beginning position of the window. The temporal path is divided into multiple continuous segments based on all stage boundary points. Each segment is a recovery stage. For each recovery stage, its stage feature vector is composed of the mean and standard deviation of the state points in each dimension within the stage, the duration of the stage, the difference vector between the start and end state vectors of the stage, and the sum of the one-hot encoded vectors of the clinical event types within the stage.
5. The method for predicting atrial fibrillation recurrence based on artificial intelligence according to claim 1, characterized in that, In step S4, the process of retrieving historical recovery stages from the population recovery process map is as follows: The nodes in the group recovery process graph store the stage feature vectors of the historical recovery stages. Directed edges connect adjacent stage nodes of the same historical patient, and the edge weight is the similarity of the stage feature vectors of the two nodes. The cosine similarity between the stage feature vector of the query stage and the stage feature vectors of each node in the graph is calculated. Nodes with a cosine similarity exceeding the retrieval threshold are selected to form the preliminary retrieval results. For each node in the preliminary search results, the matching degree between the features of the previous recovery stage on the original path of the query stage and the features of the previous node in the graph is calculated. The cosine similarity and the matching degree are fused to perform a weighted score, and the set of historical recovery stages is selected based on the score.
6. The atrial fibrillation recurrence prediction method based on artificial intelligence according to claim 1, characterized in that, In S5, the process of obtaining the complete subsequent stage chain is as follows: In the population recovery process graph, the node corresponding to the retrieved historical recovery stage is located as the starting node. Starting from the starting node, the graph is traversed backward along the directed edge that starts from the node and points to the node with a later time sequence. When the first subsequent node is visited, the node's attributes are checked to see if it contains an atrial fibrillation recurrence marker or a long-term stable marker. If it does not contain such a marker, the node is recorded as the current chain node and the next subsequent node is visited along the directed edge. The node attribute check and recording operation is repeated until the terminal node with an attribute containing an atrial fibrillation recurrence marker or a long-term stable marker is visited. The starting node, all recorded current chain nodes, and the terminal node are connected in the order of visit time to form a complete subsequent stage chain.
7. The atrial fibrillation recurrence prediction method based on artificial intelligence according to claim 6, characterized in that, In S5, the process of forming multiple candidate future evolution chains starting from the current state is as follows: For each node in the subsequent stage chain, the mean vector component of the state point and the duration component of the stage are extracted from its stored stage feature vector. In the physiological state space, a trajectory segment representing the continuous evolution of the state is generated with the mean vector of the state point as the geometric center and the time interval corresponding to the duration of the stage as the domain. According to the time order of the nodes in the chain, adjacent trajectory segments are connected at the time endpoints. The trajectory shape at the connection point is spatially interpolated and smoothed according to the weight value of the directed edge connecting the corresponding nodes in the graph, forming a complete and continuous initial trajectory. Calculate the vector difference between the coordinates of the starting point of the initial trajectory in the physiological state space and the coordinates of the target patient's current state. Subtract the vector difference from the coordinates of all points on the initial trajectory to complete the translation and alignment of the trajectory space position. Mark the translated and aligned trajectory as a candidate future evolution chain starting from the current state.
8. The atrial fibrillation recurrence prediction method based on artificial intelligence according to claim 1, characterized in that, In step S6, the process of calculating the likelihood score for each candidate future evolutionary chain is as follows: Based on the state evolution sequence of the candidate future evolution chain, a predicted clinical event type sequence is mapped, and the event type distribution, average time interval between adjacent events, and frequency of specific event combinations in the sequence are statistically analyzed. The historical event type distribution, historical average time interval, and historical combination frequency corresponding to the discrete clinical event sequence of the target patient are obtained. The first degree of agreement between the prediction and the historical event type distribution is calculated, the reciprocal of the difference between the prediction and the historical average time interval is calculated as the second degree of agreement, and the average of the reciprocals of the differences between the prediction and the historical frequency of each specific event combination is calculated as the third degree of agreement. The trajectory curvature value and total path length value of the evolutionary chain in the physiological state space are calculated. The first, second, and third conformity values, the reciprocal of the curvature value, and the reciprocal of the total length value are multiplied by preset weight coefficients and then summed to obtain the likelihood score.
9. The method for predicting atrial fibrillation recurrence based on artificial intelligence according to claim 8, characterized in that, In step S6, the process of sorting, filtering, and outputting the path set based on the scores is as follows: Set a minimum score threshold, compare the likelihood score of each candidate future evolutionary chain with the threshold, and remove all evolutionary chains with scores below the threshold. Check the endpoint attribute labels of the remaining evolutionary chains, and assign evolutionary chains labeled as atrial fibrillation recurrence to the first subset and those labeled as long-term stable to the second subset. Sort the evolutionary chains in the first and second subsets in descending order of their likelihood scores. Select the top M evolutionary chains from the first subset and the top K evolutionary chains from the second subset, where M and K are preset positive integers. Merge all selected evolutionary chains into the final output personalized recurrence risk prediction path set.
Citation Information
Patent Citations
Intelligent fault early warning maintenance management system for distribution box
CN120509874A
Specific scene safety risk identification method based on visual dynamic analysis
CN120746429A
Battlefield target behavior prediction method capable of being guided by micro-physical representation and thinking chain
CN121072792A
Method for the prognosis of patients suffering from atrial fibrillation
US20250283893A1
Individualized positioning mapping system for atrial fibrillation lesions
WO2021120536A1