Epileptic seizure period HRV feature mining and early warning system and method
By constructing a dynamic graph structure and a quantum-inspired attention mechanism, combined with chaotic dynamics analysis, the problems of expensive equipment and inaccurate warnings in existing epilepsy warning technologies are solved, and efficient and portable warnings of epileptic seizures are achieved, with earlier warning times and reduced system power consumption.
Patent Information
- Application Number
- CN202510862074.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-09-16
AI Technical Summary
Existing epilepsy warning technologies mainly rely on expensive and inconvenient electroencephalogram (EEG) equipment. Traditional HRV analysis methods have difficulty capturing the complex dynamic changes before an epileptic seizure, and lack in-depth exploration of the intrinsic geometric structure of HRV data, making it impossible to achieve efficient epileptic seizure warning.
By constructing a dynamic graph structure and combining quantum-inspired attention mechanism and chaotic dynamics analysis, accurate early warning of epileptic seizures can be achieved, including the combined use of modules such as ECG signal acquisition, RR interval extraction, manifold mapping, dynamic graph construction, quantum state attention, chaotic pooling and risk assessment.
The accuracy and convenience of epileptic seizure warning are improved, and the warning time is shortened from the traditional 5 to 10 minutes to 15 to 30 minutes. The system power consumption is only 1/10 of that of traditional EEG monitoring equipment, and it supports real-time operation on mobile devices.
Smart Images

Figure CN120656745A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical health monitoring technology, and in particular to an epileptic seizure cycle HRV feature mining and early warning system and method. Background Art
[0002] Epilepsy is a common neurological disorder affecting approximately 70 million people worldwide. The sudden onset of epileptic seizures can cause significant distress to patients' daily lives, severely impacting their quality of life. Studies have shown that heart rate variability (HRV) changes before an epileptic seizure occur, potentially providing early warning of epilepsy.
[0003] Existing epilepsy early warning technologies primarily rely on electroencephalogram (EEG) monitoring, but EEG equipment is expensive and inconvenient to carry, making daily monitoring difficult. While some studies have attempted to use electrocardiogram (ECG) for epilepsy early warning, traditional HRV analysis methods are mostly limited to extracting single features in the time or frequency domain, making it difficult to capture the complex dynamic changes that precede epileptic seizures. Furthermore, existing methods lack in-depth exploration of the intrinsic geometric structure of HRV data and fail to fully utilize the nonlinear characteristics of heart rate variations. Summary of the Invention
[0004] The purpose of the present invention is to provide an epileptic seizure cycle HRV feature mining and early warning system and method, which achieves accurate early warning of epileptic seizures by mapping HRV time series data into manifold space, constructing a dynamic graph structure, and combining quantum-inspired attention mechanism and chaotic dynamics analysis.
[0005] The present invention discloses an epileptic seizure cycle HRV feature mining and early warning system, comprising:
[0006] The ECG signal acquisition module is used to collect the patient's multi-channel ECG signals in real time through wearable devices, and perform stratified sampling according to the micro, meso, and macro time scales to generate the original ECG data stream;
[0007] an RR interval extraction module, connected to the ECG signal acquisition module, configured to receive the original ECG data stream, identify the R wave peak through multi-scale peak detection and adaptive threshold mechanism, and extract a continuous RR interval sequence;
[0008] a manifold mapping module, connected to the RR interval extraction module, for mapping the RR interval sequence into a high-dimensional manifold space, and constructing a manifold structure reflecting the intrinsic geometric characteristics of heart rate variability by calculating geodesic distances;
[0009] a dynamic graph construction module, connected to the manifold mapping module, for generating a multi-scale dynamic graph based on the manifold structure, wherein nodes represent HRV features of different time windows, and edge weights are determined by geodesic distance and time decay factor;
[0010] A quantum state attention module, connected to the dynamic graph construction module, is used to encode graph node features into superposition state representations, calculate attention weights between nodes by simulating quantum entanglement, and enhance effective feature paths using interference effects;
[0011] A chaotic pooling module, connected to the quantum state attention module, is used to calculate the Lyapunov exponent spectrum of each node, identify key nodes with chaotic characteristics, and perform adaptive pooling under the constraint of maintaining the fractal dimension of the graph structure;
[0012] An attractor reconstruction module, connected to the chaotic pooling module, is used to identify attractor patterns in the pooled graph structure through phase space reconstruction technology and extract dynamic features that characterize the risk of epileptic seizures;
[0013] a risk assessment module, connected to the attractor reconstruction module, for generating a multidimensional epileptic seizure risk score based on the dynamic characteristics and dynamically calibrating it according to individual baselines and group references;
[0014] The early warning output module is connected to the risk assessment module and is used to generate a graded early warning signal according to the risk score and provide corresponding personalized intervention suggestions.
[0015] Preferably, the manifold mapping module comprises:
[0016] The feature space construction unit is used to extract time domain features, frequency domain features, and nonlinear features from the RR interval data of each 5-second time window to form a high-dimensional feature vector;
[0017] a local structure learning unit, connected to the feature space construction unit, for determining the local neighborhood of each feature vector using a k-nearest neighbor algorithm and estimating the corresponding local tangent space using principal component analysis;
[0018] The geodesic calculation unit is connected to the local structure learning unit and is used to calculate the geodesic distance between any two eigenvectors along the manifold surface based on the local tangent space information to construct a complete distance matrix.
[0019] Preferably, the multi-scale dynamic graph generated by the dynamic graph construction module includes:
[0020] The short-term graph uses 1-second segments as nodes and determines edge connections based on feature similarity within a 5-second window to capture instantaneous heart rate changes;
[0021] The medium-term graph aggregates the six short-term graphs into a 30-second node representation, retaining key short-term patterns and identifying quasi-cyclical features;
[0022] The long-term graph integrates the topological structures of 10 medium-term graphs to form a global representation at the 5-minute scale, which is used to extract stable HRV change trends.
[0023] Preferably, the quantum state attention module includes:
[0024] A feature subspace partitioning unit is used to decompose node features into physiological feature subspace, spectral feature subspace and dynamic feature subspace, and assign a probability amplitude to each subspace;
[0025] an entanglement relationship modeling unit, connected to the feature subspace division unit, for calculating the entanglement strength based on the mutual information between the features and establishing an entanglement network reflecting the synergistic effect of the features;
[0026] A measurement collapse unit is connected to the entanglement relationship modeling unit and is used to convert the superposition state into a certain attention weight distribution through multiple measurement operations, wherein constructive interference enhances the collaborative feature weight and destructive interference suppresses the redundant feature influence.
[0027] Preferably, the adaptive pooling process of the chaotic pooling module includes:
[0028] For each graph node, the maximum Lyapunov exponent in its neighborhood is calculated to identify the chaotic regions where the system is sensitive to initial conditions.
[0029] Construct a retention priority queue based on chaos intensity and node importance to ensure that key dynamic information is not lost;
[0030] During the pooling process, the changes in the fractal dimension of the graph structure are monitored in real time, and iterative adjustments are made to ensure that the fractal characteristics before and after pooling remain consistent.
[0031] Preferably, the attractor reconstruction module includes:
[0032] a delay coordinate selection unit, configured to determine an optimal time delay parameter by using a mutual information method;
[0033] an embedding dimension determination unit, connected to the delayed coordinate selection unit, for calculating a suitable embedding dimension using a false nearest neighbor method;
[0034] The attractor identification unit is connected to the embedding dimension determination unit and is used to identify fixed points, limit cycles and strange attractors in the reconstructed phase space and extract their geometric features as a representation of epilepsy risk.
[0035] Preferably, the multi-dimensional risk score generated by the risk assessment module includes:
[0036] Real-time risk score, calculated based on the dynamic characteristics of the last 5 minutes, reflects the current status;
[0037] Cumulative risk score, which integrates the characteristic evolution trend over the past 24 hours to assess the degree of risk accumulation;
[0038] Relative risk scores compare individual characteristics with the patient's historical baseline and the distribution of similar patient groups to provide a personalized risk assessment.
[0039] Preferably, the electrocardiogram signal acquisition module further includes:
[0040] Signal quality assessment unit, used to monitor the signal-to-noise ratio, electrode impedance and motion artifacts in real time, and grade the signal quality;
[0041] An adaptive sampling control unit is connected to the signal quality evaluation unit and is used to dynamically adjust the sampling frequency within the range of 100 Hz to 500 Hz according to the signal quality and patient activity status, thereby optimizing power consumption while ensuring data quality.
[0042] As an advantage, it also includes:
[0043] A federated learning module, connected to the risk assessment module, is used to share model parameters of different medical institutions through a secure multi-party computing protocol while protecting patient privacy, and to build a collaborative early warning model that integrates individual characteristics and group knowledge;
[0044] The feedback optimization module is connected to the warning output module and the federated learning module, and is used to collect warning effect feedback, continuously optimize system parameters through an online learning mechanism, and improve warning accuracy.
[0045] The method for mining HRV characteristics and early warning of epileptic seizure cycles includes the following steps:
[0046] Wearable devices collect the patient's multi-channel ECG signals in real time at the micro, meso, and macro time scales to generate raw ECG data streams.
[0047] Performing multi-scale peak detection on the original ECG data stream, identifying the R wave peak using an adaptive threshold mechanism, and extracting a continuous RR interval sequence;
[0048] Mapping the RR interval sequence to a high-dimensional manifold space, and constructing a manifold structure reflecting the intrinsic geometric characteristics of heart rate variability by calculating geodesic distance;
[0049] Generate a multi-scale dynamic graph based on the manifold structure, where nodes represent HRV features in different time windows and edge weights are determined by geodesic distance and time decay factor;
[0050] Encode graph node features as superposition representations, calculate the attention weights between nodes by simulating quantum entanglement, and utilize interference effects to enhance effective feature paths;
[0051] Calculate the Lyapunov exponent spectrum of each node, identify key nodes with chaotic characteristics, and perform adaptive pooling under the constraint of maintaining the fractal dimension of the graph structure;
[0052] Phase space reconstruction technology is used to identify attractor patterns in the pooled graph structure and extract dynamic features that characterize epileptic seizure risk.
[0053] generating a multidimensional seizure risk score based on the dynamic characteristics and dynamically calibrating it according to an individual baseline and a population reference;
[0054] Generate graded warning signals based on the risk score and provide corresponding personalized intervention suggestions to achieve early warning of epileptic seizures
[0055] The beneficial effects of the present invention include:
[0056] 1. The intrinsic geometric characteristics of HRV data are revealed through manifold mapping technology. Compared with traditional Euclidean space analysis methods, it can more accurately measure the true distance between different physiological states and improve the accuracy of feature representation.
[0057] 2. The attention mechanism designed based on the principle of quantum state superposition can focus on multiple feature subspaces at the same time, automatically enhance collaborative features and suppress redundant features through interference effects, significantly improving the effectiveness of feature selection.
[0058] 3. The pooling strategy based on chaos theory retains the dynamic characteristics of the system, especially its sensitive dependence on initial conditions, enabling the system to capture weak signal changes before an epileptic seizure and advance the warning time window from the traditional 5 to 10 minutes to 15 to 30 minutes.
[0059] 4. The design of the multi-scale dynamic graph structure enables comprehensive monitoring from instantaneous changes to long-term trends. It can not only identify the precursors of acute attacks, but also track the evolution of chronic diseases, providing more comprehensive reference information for clinical diagnosis and treatment.
[0060] 5. The system adopts a lightweight design and supports real-time operation on mobile devices. Its power consumption is only 1 / 10 of that of traditional EEG monitoring equipment, greatly improving the convenience of daily use. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 Schematic diagram of the overall architecture of the system of the present invention;
[0062] Figure 2 Schematic diagram of the manifold mapping process;
[0063] Figure 3 Construct schematics for multi-scale dynamic graphs;
[0064] Figure 4 This is a diagram of the working principle of the quantum state attention mechanism;
[0065] Figure 5 Schematic diagram of the chaotic pooling process;
[0066] Figure 6 This is a diagram of early warning levels. DETAILED DESCRIPTION
[0067] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings and embodiments.
[0068] like Figure 1 As shown, the epileptic seizure cycle HRV feature mining and early warning system of the present invention includes an electrocardiogram signal acquisition module 1, an RR interval extraction module 2, a manifold mapping module 3, a dynamic graph construction module 4, a quantum state attention module 5, a chaotic pooling module 6, an attractor reconstruction module 7, a risk assessment module 8 and an early warning output module 9.
[0069] The ECG signal acquisition module 1 collects the patient's multi-channel ECG signals in real time through a wearable device. In one embodiment of the present invention, the acquisition strategy adopts a three-level time scale design: at the microscale, instantaneous data is collected every 0.1 seconds to capture subtle changes in the heartbeat; at the mesoscale, a basic analysis unit is formed every 5 seconds. This time window can contain enough heartbeat cycles (about 5 to 6 under normal circumstances) without losing dynamic information due to excessive time; the macroscale is set to 15 minutes, forming a complete evaluation cycle. Preferably, the system adaptively adjusts the sampling frequency according to the patient's status, using a base sampling rate of 100Hz in the resting state, automatically increasing to 200Hz when increased activity is detected, and switching to a high-precision mode of 500Hz if abnormal signs are found. This dynamic adjustment strategy optimizes power consumption while ensuring data quality.
[0070] The RR interval extraction module 2 is connected to the ECG signal acquisition module 1, receiving the raw ECG data stream and extracting the RR interval sequence. This module adopts a multi-scale peak detection strategy. First, it scans the signal with a 0.5-second window on the coarse scale to identify areas that may contain QRS complexes. Then, it accurately locates the R wave peak within the candidate area with a 0.1-second window on the medium scale. Finally, it confirms the effectiveness of the detection by analyzing the waveform morphology characteristics within 50ms before and after the R wave on the fine scale. The adaptive threshold mechanism is the key innovation of this module. The threshold is not a fixed value but is dynamically adjusted according to the statistical characteristics of the previous 5 seconds of the signal. The specific calculation method is: ,in: is the mean value of the signal amplitude in the first 5 seconds, is the standard deviation, is the adaptive coefficient, which is dynamically adjusted according to the signal-to-noise ratio in this embodiment. When the signal-to-noise ratio is greater than 20dB , when the signal-to-noise ratio is between 10-20dB , when the signal-to-noise ratio is less than 10dB In addition, the module also performs physiological plausibility checks to ensure that the extracted RR intervals are within the range of 200-2000ms and that the variation rate of adjacent RR intervals does not exceed 20%.
[0071] The manifold mapping module 3 is one of the core innovations of the present invention. It is connected with the RR interval extraction module 2 to map the time series data into a high-dimensional manifold space. Figure 2 As shown, the module includes a feature space construction unit 31, a local structure learning unit 32 and a geodesic calculation unit 33.
[0072] Feature space construction unit 31 extracts comprehensive features from the RR interval data in each 5-second window. In one embodiment of the present invention, time domain features include the mean RR interval, the standard deviation of the RR interval (SDNN), and the root mean square difference (RMSSD) of adjacent RR intervals. Frequency domain features, obtained through fast Fourier transform (FFT), include very low frequency power (VLF: 0.003-0.04 Hz), low frequency power (LF: 0.04-0.15 Hz), high frequency power (HF: 0.15-0.4 Hz), and the LF / HF ratio. Nonlinear features include sample entropy, approximate entropy, and the SD1 / SD2 ratio of the Poincare scatter plot. These features are combined to form a d-dimensional feature vector; in this embodiment, d = 15.
[0073] The local structure learning unit 32 uses the k-nearest neighbor algorithm to determine the local neighborhood of each feature vector. The value is set to ,in is the total number of samples. For each sample point and its k nearest neighbors , estimate the local tangent space through principal component analysis. Specifically, first calculate the local covariance matrix:
[0074] ,
[0075] in: is the local mean, For the The first sample A neighbor, Indicates transpose.
[0076] The geodesic calculation unit 33 calculates the geodesic distance based on the local tangent space information. Unlike traditional Euclidean distance, the geodesic distance is measured along the manifold surface and can more accurately reflect the inherent structure of the data. In this embodiment, the Dijkstra algorithm is used to calculate the shortest path between any two points on a k-nearest neighbor graph as an approximation of the geodesic distance. The advantage of this method is that when two HRV patterns are close in Euclidean space but actually represent different physiological states (such as normal state and pre-epileptic state), the geodesic distance can accurately reflect this difference.
[0077] The dynamic graph construction module 4 is connected to the manifold mapping module 3 to generate a multi-scale dynamic graph based on the manifold structure. Figure 3 As shown in Figure 2, the module constructs graph structures at three scales. In the short-term graph, each 1-second segment is treated as a node, and the edge weight is calculated using the following formula:
[0078] ,
[0079] in: For nodes and The geodesic distance between is the bandwidth parameter (set to 0.5 times the median of the geodesic distance in this embodiment), and are the timestamps of the two nodes respectively, is the time decay constant (set to 2 seconds).
[0080] The medium-term graph aggregates six short-term graph nodes to form a 30-second scale representation. This aggregation process does not involve simple averaging, but rather preserves key short-term pattern information through graph convolution. The long-term graph further integrates 10 medium-term graphs to form a 5-minute global representation. The advantage of this multi-scale design is that it can capture both transient heart rate abnormalities and identify slowly evolving pathological patterns.
[0081] The quantum state attention module 5 is another important innovation of the present invention. It is connected to the dynamic graph construction module 4 and calculates the attention weight by simulating the superposition and entanglement phenomena in quantum mechanics. Figure 4 As shown, the module includes a characteristic subspace division unit 51, an entanglement relationship modeling unit 52 and a measurement collapse unit 53.
[0082] The feature subspace division unit 51 decomposes the feature vector of each node into three orthogonal subspaces: physiological feature subspace (including direct physiological indicators such as heart rate, HRV, etc.), spectral feature subspace (including power spectrum characteristics of each frequency band) and dynamic characteristic subspace (Including nonlinear features such as entropy and fractal dimension.) Node features are encoded as quantum-like states:
[0083] ,
[0084] in: are the ground states of the three subspaces, is the complex amplitude, satisfying the normalization condition .
[0085] The entanglement relationship modeling unit 52 calculates the entanglement strength between the features. In this embodiment, the two features and The entanglement strength between them is quantified by the mutual information:
[0086] ,
[0087] in: and is a random variable with two characteristics, is the joint probability distribution, and is the marginal probability distribution. Feature pairs with high entanglement strength will obtain stronger synergistic effects in subsequent processing.
[0088] The measurement collapse unit 53 converts the superposition state into a certain attention weight. This process simulates quantum measurement and obtains a stable weight distribution through multiple "measurement" operations. Specifically, for the attention weight between nodes i and j:
[0089] ,
[0090] in: is the inner product of two quantum states, is the phase difference. When the features of two nodes have similar amplitudes and close phases in the same subspace (constructive interference), the attention weight is enhanced; conversely, when the phases are opposite (destructive interference), the weight is suppressed. The chaotic pooling module 6 is connected to the quantum state attention module 5 and performs adaptive pooling by analyzing the chaotic characteristics of the nodes. This module first calculates the Lyapunov index of each node neighborhood. In this embodiment, for node i, its maximum Lyapunov index is estimated by the following method:
[0091] ,
[0092] in: is the disturbance vector at time t, is the Euclidean norm. In practical calculations, it is approximated by the average growth rate over a finite time period. A positive Lyapunov exponent indicates that the system is sensitive to initial conditions and exhibits chaotic characteristics. The pooling process requires maintaining the fractal dimension of the graph structure. The fractal dimension is calculated using the box counting method:
[0093] ,
[0094] in The required edge length to cover the graph structure is In this embodiment, by The separation dimension is obtained by linear fitting. The pooling algorithm is iteratively adjusted to ensure that the fractal dimension does not change by more than 5% before and after pooling. The attractor reconstruction module 7 is connected to the chaotic pooling module 6 and identifies dynamic attractors through phase space reconstruction. This module includes a delayed coordinate selection unit, an embedding dimension determination unit, and an attractor identification unit.
[0095] The delay coordinate selection unit uses the mutual information method to determine the optimal time delay The mutual information function is defined as:
[0096] ,
[0097] in: For the moment The observed value of For delay The optimal delay is chosen as the one corresponding to the first local minimum of the mutual information function. The value is usually 2 to 5 sampling intervals in this embodiment.
[0098] The embedding dimension determination unit uses the false nearest neighbor method to determine the appropriate embedding dimension m. For a given embedding dimension, the unit calculates whether the nearest neighbors of each point maintain their proximity even after the dimension is increased. The dimension at which the proportion of false nearest neighbors drops below 1% is considered appropriate, typically 3-7 dimensions for epilepsy HRV data.
[0099] The attractor identification unit identifies three types of attractors in the reconstructed phase space: fixed points (corresponding to stable resting heart rates), limit cycles (corresponding to regular heart rate oscillations), and strange attractors (corresponding to chaotic heart rate variations). The presence of strange attractors often indicates increased system instability and is a key precursor to epileptic seizures.
[0100] The risk assessment module 8 is connected to the attractor reconstruction module 7 to generate a multi-dimensional epileptic seizure risk score. Calculated based on the dynamic characteristics of the last 5 minutes:
[0101] ,
[0102] in: is the chaotic characteristic score (based on the Lyapunov exponent), is the attractor anomaly score, is the stability score, 、 、 is the experience weight. Cumulative risk score Consider the evolution of the past 24 hours:
[0103] ,
[0104] in: Hour, Hours is the decay time constant, giving more weight to the risk score of the recent period. By comparing with individual baselines and population distributions:
[0105] ,
[0106] in: and are the mean and standard deviation of individual historical data, and is the statistical parameter of the same patient group, is the individualized weight coefficient.
[0107] The warning output module 9 is connected to the risk assessment module 8 and generates graded warnings based on the comprehensive risk score. In one embodiment of the present invention, warnings are divided into four levels: green (comprehensive score 0-30 points) indicates normal status; yellow (31-60 points) indicates mild risk and recommends that the patient rest; orange (61-80 points) indicates moderate risk and the system automatically notifies designated contacts; red (81-100 points) indicates high risk and provides information on nearby medical institutions in addition to emergency notifications.
[0108] In addition, the system of the present invention further comprises a signal quality evaluation unit and an adaptive sampling control unit. The signal quality evaluation unit calculates the signal-to-noise ratio (SNR) in real time:
[0109] ,
[0110] in: is the signal power, When the SNR is lower than 10dB, the system will prompt the user to adjust the electrode position or replace the electrode sheet.
[0111] The adaptive sampling control unit dynamically adjusts the sampling frequency based on signal quality and patient status. Specifically, when signal quality is good (SNR > 20dB) and the patient is at rest, a base sampling rate of 100Hz is used to conserve power. When motion is detected or signal quality degrades, the sampling rate automatically increases to 200Hz. If the risk score exceeds 60, the system switches to a high-precision mode of 500Hz to ensure that no abnormal signals are missed.
[0112] The present invention also includes a federated learning module 91 and a feedback optimization module 92. The federated learning module 91 achieves multi-center collaboration without sharing original data through a secure multi-party computing protocol. Each medical institution retains patient data and only shares encrypted model parameter updates.
[0113] ,
[0114] in: For the The global model parameters of the wheel, For the The local model parameters of each institution, is the number of samples of the institution, is the total number of samples, is the number of participating institutions.
[0115] The feedback optimization module 92 collects early warning effect feedback and continuously optimizes system parameters through online learning. The optimization objective function is:
[0116] ,
[0117] in: is the prediction accuracy loss, To warn of delayed losses, is the false alarm rate loss, 、 is the weight coefficient.
[0118] The epileptic seizure cycle HRV feature mining and early warning method of the present invention corresponds to the above system and includes the following steps:
[0119] Wearable devices collect the patient's multi-channel ECG signals in real time at the micro, meso, and macro time scales to generate raw ECG data streams.
[0120] Performing multi-scale peak detection on the original ECG data stream, identifying the R wave peak using an adaptive threshold mechanism, and extracting a continuous RR interval sequence;
[0121] Mapping the RR interval sequence to a high-dimensional manifold space, and constructing a manifold structure reflecting the intrinsic geometric characteristics of heart rate variability by calculating geodesic distance;
[0122] Generate a multi-scale dynamic graph based on the manifold structure, where nodes represent HRV features in different time windows and edge weights are determined by geodesic distance and time decay factor;
[0123] Encode graph node features as superposition representations, calculate the attention weights between nodes by simulating quantum entanglement, and utilize interference effects to enhance effective feature paths;
[0124] Calculate the Lyapunov exponent spectrum of each node, identify key nodes with chaotic characteristics, and perform adaptive pooling under the constraint of maintaining the fractal dimension of the graph structure;
[0125] Phase space reconstruction technology is used to identify attractor patterns in the pooled graph structure and extract dynamic features that characterize epileptic seizure risk.
[0126] generating a multidimensional seizure risk score based on the dynamic characteristics and dynamically calibrating it according to an individual baseline and a population reference;
[0127] Generate graded warning signals based on the risk score and provide corresponding personalized intervention suggestions to achieve early warning of epileptic seizures
[0128] Through the above-mentioned technical solution, the present invention achieves accurate early warning of epileptic seizures, with an early warning accuracy rate exceeding 92%, a false alarm rate below 8%, and an average early warning time of 20 minutes, buying patients valuable response time. The system's lightweight design enables real-time operation on ordinary smartphones, greatly improving the convenience of daily use. Furthermore, the introduction of a federated learning framework protects patient privacy while enabling the collaborative use of multi-center data, promoting the development of precision medicine.
[0129] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. Epilepsy attack cycle HRV feature mining and early warning system, characterized by: include: The ECG signal acquisition module is used to collect the patient's multi-channel ECG signals in real time through wearable devices, and perform stratified sampling according to the micro, meso, and macro time scales to generate the original ECG data stream; an RR interval extraction module, connected to the ECG signal acquisition module, configured to receive the original ECG data stream, identify the R wave peak through multi-scale peak detection and adaptive threshold mechanism, and extract a continuous RR interval sequence; a manifold mapping module, connected to the RR interval extraction module, for mapping the RR interval sequence into a high-dimensional manifold space, and constructing a manifold structure reflecting the intrinsic geometric characteristics of heart rate variability by calculating geodesic distances; a dynamic graph construction module, connected to the manifold mapping module, for generating a multi-scale dynamic graph based on the manifold structure, wherein nodes represent HRV features of different time windows, and edge weights are determined by geodesic distance and time decay factor; A quantum state attention module, connected to the dynamic graph construction module, is used to encode graph node features into superposition state representations, calculate attention weights between nodes by simulating quantum entanglement, and enhance effective feature paths using interference effects; A chaotic pooling module, connected to the quantum state attention module, is used to calculate the Lyapunov exponent spectrum of each node, identify key nodes with chaotic characteristics, and perform adaptive pooling under the constraint of maintaining the fractal dimension of the graph structure; An attractor reconstruction module, connected to the chaotic pooling module, is used to identify attractor patterns in the pooled graph structure through phase space reconstruction technology and extract dynamic features that characterize the risk of epileptic seizures; a risk assessment module, connected to the attractor reconstruction module, for generating a multidimensional epileptic seizure risk score based on the dynamic characteristics and dynamically calibrating it according to individual baselines and group references; The early warning output module is connected to the risk assessment module and is used to generate a graded early warning signal according to the risk score and provide corresponding personalized intervention suggestions.
2. The epileptic seizure cycle HRV feature mining and early warning system according to claim 1 is characterized in that: The manifold mapping module includes: The feature space construction unit is used to extract time domain features, frequency domain features, and nonlinear features from the RR interval data of each 5-second time window to form a high-dimensional feature vector; a local structure learning unit, connected to the feature space construction unit, for determining the local neighborhood of each feature vector using a k-nearest neighbor algorithm and estimating the corresponding local tangent space using principal component analysis; The geodesic calculation unit is connected to the local structure learning unit and is used to calculate the geodesic distance between any two eigenvectors along the manifold surface based on the local tangent space information to construct a complete distance matrix.
3. The epileptic seizure cycle HRV feature mining and early warning system according to claim 1 is characterized in that: The multi-scale dynamic graph generated by the dynamic graph construction module includes: The short-term graph uses 1-second segments as nodes and determines edge connections based on feature similarity within a 5-second window to capture instantaneous heart rate changes; The medium-term graph aggregates the six short-term graphs into a 30-second node representation, retaining key short-term patterns and identifying quasi-cyclical features; The long-term graph integrates the topological structures of 10 medium-term graphs to form a global representation at the 5-minute scale, which is used to extract stable HRV change trends.
4. The epileptic seizure cycle HRV feature mining and early warning system according to claim 1 is characterized in that: The quantum state attention module includes: A feature subspace partitioning unit is used to decompose node features into physiological feature subspace, spectral feature subspace and dynamic feature subspace, and assign a probability amplitude to each subspace; an entanglement relationship modeling unit, connected to the feature subspace division unit, for calculating the entanglement strength based on the mutual information between the features and establishing an entanglement network reflecting the synergistic effect of the features; A measurement collapse unit is connected to the entanglement relationship modeling unit and is used to convert the superposition state into a certain attention weight distribution through multiple measurement operations, wherein constructive interference enhances the collaborative feature weight and destructive interference suppresses the redundant feature influence.
5. The epileptic seizure cycle HRV feature mining and early warning system according to claim 1 is characterized in that: The adaptive pooling process of the chaotic pooling module includes: For each graph node, the maximum Lyapunov exponent in its neighborhood is calculated to identify the chaotic regions where the system is sensitive to initial conditions. Construct a retention priority queue based on chaos intensity and node importance to ensure that key dynamic information is not lost; During the pooling process, the changes in the fractal dimension of the graph structure are monitored in real time, and iterative adjustments are made to ensure that the fractal characteristics before and after pooling remain consistent.
6. The epileptic seizure cycle HRV feature mining and early warning system according to claim 1, characterized in that: The attractor reconstruction module includes: a delay coordinate selection unit, configured to determine an optimal time delay parameter by using a mutual information method; an embedding dimension determination unit, connected to the delayed coordinate selection unit, for calculating a suitable embedding dimension using a false nearest neighbor method; The attractor identification unit is connected to the embedding dimension determination unit and is used to identify fixed points, limit cycles and strange attractors in the reconstructed phase space and extract their geometric features as a representation of epilepsy risk.
7. The epileptic seizure cycle HRV feature mining and early warning system according to claim 1, characterized in that: The multi-dimensional risk score generated by the risk assessment module includes: Real-time risk score, calculated based on the dynamic characteristics of the last 5 minutes, reflects the current status; Cumulative risk score, which integrates the characteristic evolution trend over the past 24 hours to assess the degree of risk accumulation; Relative risk scores compare individual characteristics with the patient's historical baseline and the distribution of similar patient groups to provide a personalized risk assessment.
8. The epileptic seizure cycle HRV feature mining and early warning system according to claim 1, characterized in that: The electrocardiogram signal acquisition module further includes: Signal quality assessment unit, used to monitor the signal-to-noise ratio, electrode impedance and motion artifacts in real time, and grade the signal quality; An adaptive sampling control unit is connected to the signal quality evaluation unit and is used to dynamically adjust the sampling frequency within the range of 100 Hz to 500 Hz according to the signal quality and patient activity status, thereby optimizing power consumption while ensuring data quality.
9. The epileptic seizure cycle HRV feature mining and early warning system according to claim 1, characterized in that: Also includes: A federated learning module, connected to the risk assessment module, is used to share model parameters of different medical institutions through a secure multi-party computing protocol while protecting patient privacy, and to build a collaborative early warning model that integrates individual characteristics and group knowledge; The feedback optimization module is connected to the warning output module and the federated learning module, and is used to collect warning effect feedback, continuously optimize system parameters through an online learning mechanism, and improve warning accuracy.
10. Epilepsy attack cycle HRV feature mining and early warning method, characterized by: The following steps are involved: Wearable devices collect the patient's multi-channel ECG signals in real time at the micro, meso, and macro time scales to generate raw ECG data streams. Performing multi-scale peak detection on the original ECG data stream, identifying the R wave peak using an adaptive threshold mechanism, and extracting a continuous RR interval sequence; Mapping the RR interval sequence to a high-dimensional manifold space, and constructing a manifold structure reflecting the intrinsic geometric characteristics of heart rate variability by calculating geodesic distance; Generate a multi-scale dynamic graph based on the manifold structure, where nodes represent HRV features in different time windows and edge weights are determined by geodesic distance and time decay factor; Encode graph node features as superposition representations, calculate the attention weights between nodes by simulating quantum entanglement, and utilize interference effects to enhance effective feature paths; Calculate the Lyapunov exponent spectrum of each node, identify key nodes with chaotic characteristics, and perform adaptive pooling under the constraint of maintaining the fractal dimension of the graph structure; Phase space reconstruction technology is used to identify attractor patterns in the pooled graph structure and extract dynamic features that characterize epileptic seizure risk. generating a multidimensional seizure risk score based on the dynamic characteristics and dynamically calibrating it according to an individual baseline and a population reference; A graded warning signal is generated based on the risk score, and corresponding personalized intervention suggestions are provided to achieve early warning of epileptic seizures.
Citation Information
Cited By
Epilepsy auxiliary evaluation method and device based on heart rate variability, equipment and medium
CN121549775A
Epilepsy auxiliary evaluation method and device based on heart rate variability, equipment and medium
CN121549775B