ECG algorithm and its integration into an ECG analysis device
By preprocessing ECG signals to create a reduced-size dataset for deep learning analysis, the method addresses the computational challenges of existing algorithms, enabling efficient ECG analysis on low-power devices with minimal power consumption.
Patent Information
- Application Number
- FR2023002476
- Authority / Receiving Office
- FR · FR
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-20
AI Technical Summary
Existing deep learning algorithms for ECG analysis are computationally expensive and require significant resources, making them unsuitable for integration into lightweight devices with limited computing capacity and battery life, such as smartwatches and heart rate monitors.
A method involving preprocessing of ECG signals to generate a reduced-size dataset using predetermined time index deviations, which is then analyzed by a deep learning algorithm, specifically a multi-level convolutional neural network, to classify ECG signals efficiently on low-power devices.
The method reduces computational load and memory requirements, allowing ECG analysis to be performed on lightweight devices with minimal power consumption and storage, while maintaining high performance.
Smart Images

Figure 00000000_0000
Abstract
Description
Description Title of the invention: ECG algorithm and embedding in a ECG analysis device technical field
[0001] — The present invention relates to the field of electrocardiograms (ECG or EKG) and in particular characterization algorithms (classification, regression) of ECG signals and relates in particular to devices (especially portable ones) em- launching such algorithms.
[0002] Characterization refers in particular to the identification of certain features temporal in the ECG signal. Previous technique
[0003] — More and more portable devices today incorporate an ECG module including electrodes for and a processor capable of processing the ECG signal.
[0004] In this regard, reference can be made to documents WO2015 / 021391 (AppleTM), W0O2021 / 020706 (SamsungTM), WO2021 / 204809 (WithingsTM), WO2015 / 035251 (AliveCorTM),
[0005] — Machine learning algorithms for ECG can be divided into two main categories: on the one hand, non-deep algorithms learning (these are the traditional algorithms, based on vector extraction) separable in space, such as decision forests) and on the other hand the deep learning algorithms (using channels). We will use the term "deep learning" to mean "deep learning".
[0006] Non-deep learning algorithms require manually extracting characteristics ECG signal characteristics (for example, a scalar representing the regularity of the in- RR intervals, the proportion of visible P-wave, etc.). Obtain a characteristic vector- Creating separable risks that contain sufficient information is a difficult task and the maximum performance of these algorithms is lower than the performance that can be achieved with a deep learning algorithm.
[0007] — Deep learning algorithms, on the other hand, rely on databases la- bellicose and significant computing power in order to be able to build models taking the raw input signal.
[0008] = The document “ECG arrhythmia classification using a 2-D convolutional neural Jun et al.'s network uses a two-dimensional neural network that requires convert the ECG signal into an ECG image with grey gradient.
[0009] = The document “Classification of ECG Arrhythmia using Recurrent Neural Networks” Singh et al. uses a recursive neural network. The document “Robust ECG Signal Classification for Detection of Atrial Fibrillation using a Novel Neural Network” by Xiong et al. uses a neural network on the ECG signal. The document “Articial intelligence and deep neural networks can identify patients with electrocardiographically concealed long QT syndrome from the surface 12-lead electrocardiogram” by Bos et al. (AliveCorTM) uses a deep neural network. All these algorithms are expensive to train and infer. Furthermore, there is a need to implement ECG algorithms on lightweight devices with limited processing power that must maintain long battery life. In this regard, smartwatches or hybrid watches (Apple Watch™, Samsung Galaxy Watch™), heart rate monitors (Polar™), scales (Withings BodyScan™), and others (Alivecord™ Kardiamobile™, for example) can impose such significant constraints that most existing deep learning algorithms cannot be satisfactorily implemented on these lightweight devices. Summary This description relates to a method for analyzing an electrocardiogram (ECG) signal, as well as to a computer program implementing this method and a recording medium storing this computer program. This description also relates to an electrocardiogram module, referred to as the ECG module, implementing the aforementioned ECG signal analysis method, and to an electrocardiogram analysis device that includes the ECG module. In one aspect, the analysis method is defined as a method for analyzing an electrocardiogram (ECG) signal, the ECG signal comprising QRS complexes with an R peak, the analysis method being implemented by an ECG module, the method comprising: 1. Reception of a digital ECG signal, the digital ECG signal corresponding to points each defined by a time index and a voltage value T, ii. Preprocessing (404) of the received digital ECG signal, the preprocessing comprising: ii.a, determination, for a plurality of QRS complexes of the digital ECG signal, of the temporal index of the point representing the R peak, called point R, of each QRS complex, ii.b. extraction, around each point R, of a set of voltage values, the set of voltage values comprising the voltage values T of a set of points of the ECG signal, the set of points being determined by a predetermined set of time index deviations from the time index of point R, li.c. generation of an ECG dataset including: ii.c.1, a time series using the time indices of the plurality of points, ii.c.2. a voltage series using sets of voltage values, in which the voltage values T of the points R are regularly arranged, iii. characterization of the ECG signal using the ECG dataset as input to a deep learning algorithm. In one embodiment, the predetermined set of temporal index deviations is a predetermined set of positive and negative temporal index deviations. In one embodiment, the predetermined set of time index deviations includes a zero deviation, in other words the series includes the value of the tension of the plurality of points R. In one embodiment, the time series includes the time index differences between two successive time indices of point R (tR2-tR1, tR3-tR2, …). In one embodiment, the set of points includes i points before the time index of point R, point R and j points after the time index, for example i=j and for example i and j are between 20 and 40. In one embodiment, the ECG dataset is the only input to the classifier. In one embodiment, the ECG dataset consists solely of said time series and said voltage series. In one embodiment, the deep learning algorithm includes a multilevel convolutional neural network and one level processes sets of voltage values, which all have an identical structure, thus enabling information factorization. In one embodiment, the output of the classifier is a probability among a plurality of classes, the plurality of classes comprising at least two classes, for example between two and five classes. In one embodiment, the analysis method further includes a visualization method comprising a superposition of QRS complexes centered on the R point and a display of said superposition. According to one aspect, a computer program is defined as a computer program comprising instructions which, when the program is executed by an ECG module, cause the ECG module to implement an analysis method as described previously. In one embodiment, the computer program weighs at most 100KB, preferably less than 60KB, even more preferably less than 20KB and even less than 10KB. In one respect, a recording medium is defined as a computer-readable recording medium that includes a computer program such as described previously. According to one aspect, the ECG module is defined as an ECG module comprising a processor and memory, the ECG module being configured to implement a method as described previously. In one embodiment, the execution of the method as described above consumes less than 2 megaFlops of the processor and / or consumes less than 20 KB of volatile memory, for example equal to or less than 10 KB. According to one aspect, the ECG analysis device is defined as an electrocardiogram, ECG, analysis device, comprising electrodes and an ECG module as described above, the ECG module receiving a digital ECG signal from an analog ECG signal obtained by the electrodes. In one embodiment, the ECG analysis device includes an analog-to-digital controller, ADC, configured to convert the analog ECG signal from the electrodes (102, 104, 106) and convert it to a digital ECG signal, and the voltage value is set as the ADC step value. In one embodiment, the ECG analysis device further includes a communication module, connected to the ECG module, and the ECG module is configured to generate instructions to send the characterization to the communication module. Brief description of the drawings Other features, details and advantages will become apparent from reading the detailed description below, and from analyzing the attached drawings, on which: Fig. 1. [Fig.1] This figure represents two portable devices according to different implementation methods. Fig.2 [Fig.2] This figure represents a schematic view of a portable device and its connectivity environment according to one embodiment. Fig. 3 [Fig.3] This figure represents a method of obtaining ECG involving a method of analyzing the ECG signal, according to one embodiment. Fig. 4 [Fig.4] This figure represents an ECG analysis method involving ECG signal pre-processing and algorithm, according to one embodiment. Fig.5 [Fig. 5] This figure represents in more detail a part of the preprocessing, according to a method of implementation. Fig.6 [Fig.6] This figure represents in more detail a part of the pretreatment, according to one embodiment. Fig. 7 [Fig.7] This figure represents variants of implementation of part of the preprocessing, with different predetermined sets of temporal index deviation, applied around a temporal index. Fig. 8 [Fig.8] This figure represents a visualization method. Description of the embodiments The description below will present the invention and its possible variations. The invention relates in particular to a portable electrocardiogram (ECG) analysis device comprising at least two electrodes configured to acquire an ECG electrical signal and an ECG electronic module configured to analyze said ECG electrical signal. The ECG electronic module includes memory and a processor. In particular, Figure 1 illustrates two types of portable devices, 100 and 100, which can be configured to incorporate an ECG signal analysis method algorithm. Device 100 is a watch (for example, a hybrid watch, shown here without hands) worn on a user's wrist. Device 100' is a portable electrocardiograph, in the form of a prehensile, card-shaped device, such as the KardiaMobileTM from AlivecorTM or the DuoekTM from WellueTM. The watch 100 includes at least two ECG electrodes 102, 104, and 106. For example, the first electrode 102 is integrated into the bezel of the watch 100, and the second electrode 104 is integrated into the case back. A third electrode 104 may also be located, for example, on the case back. In two examples, the case back may consist of a metal piece or a glass with a metallic coating. Alternatively, the first electrode 102 may be located on the crown or elsewhere. The card 100 similarly includes at least two electrodes 102', 104'. For example, a first electrode 102" on one side of the card 100' and a second electrode 104' on the other side of the card 100'. A third electrode 106' may be provided, for example on a second side of the card, opposite the first side. The device can take other forms (such as a balance that produces an electrocardiogram, for example). For the remainder of this description, reference will be made to the two ECG electrodes 102 and 104 for obtaining an ECG electrical signal. However, this description applies similarly to the various embodiments described above, including those with three or more electrodes. Presentation of the ECG analysis device Figure 2 schematically illustrates the components of an electrocardiogram analysis device 200, which could, for example, be device 100 or 100”. The two ECG electrodes 102, 104 are electrically connected to a control unit 202. The control unit 202 includes various modules that are involved in obtaining and analyzing the ECG signal. The control unit 202 thus includes an acquisition module 204 capable of receiving the analog ECG signals from the ECG electrodes 102, 104 and generating a digital ECG output signal. The acquisition module 204 may include filters, amplifiers, and an analog-to-digital converter (ADC) 206. The control unit 202 includes, in particular, an ECG module 208 configured to implement a method for analyzing an ECG signal, based on a digital ECG signal generated by the acquisition module 204, and specifically to generate a characterization of the digital ECG signal. In this respect, the ECG module 208 includes a control circuit 210, with a processor 212 and memory 214, 215. The memory is comprised of volatile memory 214, of the RAM type, and non-volatile memory, of the flash (or ROM or SSD) type. The control circuit 210 further includes a VO (In / Out) interface for communicating with other modules or components. The ECG module 208 is configured to execute an ECG computer program containing instructions for an ECG analysis method. The ECG computer program is stored on non-volatile memory 215.The ECG analysis method will be described in more detail later. The volatile memory 214 is used for executing the analysis method, and the non-volatile memory 215 is used for storing the computer program and / or the results obtained by said computer program. The control circuitry 210 of the ECG module 208 can be shared with a control circuitry of the control unit 202 or other modules. Device 200 may also include one or more of the following sensors: accelerometer, thermometer, optical sensor, photoplethysmographic (PPG) type, etc. To supply the various components with electrical energy, the device 200 includes a battery 216, for example a cell or a rechargeable battery. Battery 216 is configured to power, in particular, the control unit 202 and, in particular, the ECG module 208. In particular, each ECG processing by the processing unit 202 and each ECG analysis by the module 208 consumes an amount of energy supplied by battery 216. Alternatively, the device 200 is connected to the mains. The control unit 202 includes a communication interface 218 for communicating with various components of the device 200. In particular, the device 200 includes a communication module 220 (for example a BluetoothTM, Bluetooth Low Energy BLETM, WiFiTM, cellular module, etc.), connected to the communication interface 218 and which enables it to communicate bidirectionally with at least one external terminal 222, such as a mobile phone. The external terminal 222 can then communicate (bidirectionally) with a remote server 224 for data storage and processing. Alternatively or additionally, the wireless communication module 220 can communicate directly with the remote server 224, for example, via a cellular network or a Wi-Fi network. Data produced by the device 200, such as an ECG signal or information related to that ECG signal, is transmitted to the external terminal 222 via the wireless communication module 220. Methods The ECG computer program and the associated ECG analysis method will now be described in relation to Figures 3 to 8. An (analog) ECG signal is an electrical signal generated by the nerve activity of the user's heart, which is transmitted to the ECG electrodes when the user touches them simultaneously (illustrated in diagram (i) of [Fig. 3] by the user's gesture with their index finger on electrode 102 of watch 100). As is known, the ECG signal (illustrated in diagram (ii) of [Fig. 3] as a filtered ECG signal, with seconds on the x-axis and voltage in mV on the y-axis) comprises peaks, including PQRST peaks, and more specifically the QRS complex. The interval between two R peaks is called the RR interval. The description and understanding of ECG signals are well established and will not be described in further detail here. Metl “obtaining ECG The ECG analysis method may be part of an ECG acquisition method 300 illustrated in diagram (iii) of [Fig. 3]. The ECG acquisition method 300 includes, in particular, the acquisition 302 by the acquisition module 204 and the electrodes 102, 104 of an analog ECG signal to convert it into a digital ECG signal, and the analysis 304 by the ECG module 208 of the digital ECG signal to automatically extract information. Finally, the ECG acquisition method 300 may include sending 306 a notification to the device 200 and / or sending the result The 304 analysis and / or ECG signal to the mobile terminal 222 can be performed using techniques already implemented in current devices. The 302 acquisition and 306 transmission can involve a single-lead ECG signal or a multi-lead ECG signal. The 304 analysis, also called the ECG analysis method, will now be described in more detail. ECG analysis method Figure 4 illustrates an ECG 400 analysis method according to one embodiment. As previously stated, the ECG 400 analysis method is implemented by the ECG module 208, whose processor 212 executes a computer program (called the ECG computer program) corresponding to said ECG analysis method, stored in memory 214. In one embodiment, the ECG 400 analysis method is applied to one channel of the ECG signal. In the case of a multi-channel ECG signal, the ECG 400 analysis method can be applied to each channel successively or in parallel. The ECG analysis method 400 includes the reception 402 of a digital ECG signal, resampling 404 (optional) of the digital ECG signal, preprocessing 406 of the received (or resampled, if applicable) ECG signal to generate an input dataset (hereafter referred to as the "DS dataset"), and characterization 408 of said DS dataset using a deep learning algorithm, for example a classifier type, implemented by the ECG module 208. The deep learning algorithm will be described in more detail later. Preprocessing 406 and characterization 408 are each designed to work together to generate processing synergy: in particular, preprocessing 406 does not rely on machine learning but, for example, is a signal processing algorithm. This signal processing algorithm is computationally inexpensive for the 212 processor of the ECG 208 module and is small in size and memory-efficient, allowing for a smaller input dataset for the deep learning algorithm. Conversely, the deep learning algorithm receives less data as input relative to the total size of the ECG signal, requiring less computing power and simplifying the training of the deep learning algorithm. Resampling 404 involves resampling the digitized ECG signal received at receiver 402 to the desired frequency. Resampling depends, in particular, on the frequency values that preprocessing 406 can handle. Typically, the acquisition module 204 can generate a signal at a higher frequency (e.g., 500 Hz) than the operating frequency of the ECG module 208 (e.g., 300 Hz). Resampling 404 thus allows a digital ECG signal from a first frequency to a second frequency. With reference to figures 5, 6, 7, pretreatment 406 will be described in more detail. Preprocessing 406 is applied to a digital ECG signal sampled at a given frequency (e.g., 300 Hz). This means that the digital ECG signal corresponds to a series of points, each defined by a time index t and a voltage value T. The time index t is usually a time, expressed, for example, in seconds; the voltage value T can be in ADC steps, which directly represent the voltage value. The digitized ECG signal is therefore a large signal in terms of data: for example, a 30-second digital ECG signal (which is a standard duration for ECG acquisition) at 300 Hz comprises 30 seconds x 300 points per second, or 9000 points, typically 18 KB. Preprocessing 406 aims to extract from this digital ECG signal information of significantly reduced size compared to the size of the digital ECG signal, which directly impacts the design and operation of the characterization 408. Preprocessing 406 may include cleaning 500 of the digital ECG signal. Cleaning 500 may involve applying one or more filters to remove the signal baseline and electromagnetic noise. For example, a high-pass filter and a low-pass filter may be used. Preprocessing 406 includes, in particular, the determination 502 of R points in QRS complexes. The ECG signal generally contains a plurality of QRS complexes. The number of ECG complexes contained in a received ECG signal is denoted N (N=2 in [Fig. 5], for purely illustrative purposes, since N is generally around 30). For each of these ECG complexes, the ECG module 208 identifies the peak R (called the R point) and extracts the time index tR of the R point. The voltage values TR of the R points can also be extracted. Let tR1, tR2, tR3, …, tRN be the time indices of successive points R in the ECG signal. Let R1, R2, …, RN be the N points R. Let TR1, TR2, TR3, …, TRN be the N voltage values of the points R. Determination 502 thus generates a series of data relating to points R1, …, RN. Subsequently, an extraction 504 of a plurality of voltage values is performed by the ECG module 208 around each point R. In one embodiment, the extraction uses a predetermined set EA of time index deviations, stored in memory 214. From an input time index, said predetermined set EA generates a set EtA of time indices which are, respectively, with respect to the input time index, deviations from the predetermined set EA of deviations. For example, (for a time index in seconds), the predetermined set of time index deviations might include: EA = {-0.30s; -0.29s; -0.28s; …; - 0.01s; Os; +0.015; ….; +0.28s; +0.29s; +0.30s}. Applied to a time index t, the predetermined set EA generates a set EtA of time indices as follows: EtA = {t-0.30s; t-0.29s; t-0.28s; …; t-0.01s; t; t+0.01s; ….; t+0.28s; t+0.295; t+0.30s}. More generally, in one embodiment, the predetermined set EA can include {-AL(i); -AL(i-1); …; -AL(1); 0; +AR(1); …; +AR(G-1); +ARG}, with i and j being positive natural numbers, with AL(k) and AR(k) (for k ranging from 1 to i and j respectively) representing deviations along the time index (typically in seconds), with AL(i) > AL(i-1) > … > AL(1) > 0 and 0 < AR(1) < … < AR(Gj-1) < AR(j). We denote EtA = {t(i); t(i-1); … : (1) 3 tR 5 (1); … 3 t'G-1); t'()} are the time indices obtained from the time index tR of a peak R. In pseudo-mathematical notation, the data pair (tR ; EA) allows us to generate EtA. Each set EtA therefore comprises i+1+j time indices. In a simplified embodiment, we have ai=j and AL(k) = AR(k) for k ranging from 1 to i or j. Thus, the predetermined set EA then comprises {-AR(j) ; -AR(j-1) ; … : -AR(1); 0; +AR(1); … ; +AR(j-1) ; +AR}. In an even more simplified embodiment, the deviations of the predetermined set EA are regular, of value A, so that the predetermined set EA can be written: {-Ai ; - A.(i-1) ; … 3 - A.150; + A.1 3... ; + A.(j-1) ; + A,j}, where the dots signify a multiplication. Figure 6 illustrates an example with N = 3 (three QRS complexes), with i = j = 2, and for which the distances between two successive temporal index deviations of the predetermined set EA are all regular: AL(2) - AL(1) = AL(1) = AR(2) - AR(1) = AR(1). For each of the three QRS complexes, a set EtA of temporal indices is generated (EtA], EtA2, EtA3). As previously stated, this predetermined set EA is applied to each time index tR1, …, tRN to generate a set of time indices EtA1, ……, EtAN around each point R. Therefore, for each point R, there are time indices to the left (i.e., before temporally) the time index tR of point R and j time indices to the right (i.e., after temporally) the time index tR of point R. The ECG 208 module then extracts the voltage values corresponding to each index of the EtA set. Thus, for each index of each EtA1, …, EtAN set, the ECG 208 module extracts a voltage value, thereby generating a set of voltage values JV (JV1, …, JVN) for each EtA1, …, EtAN set. Figure 6 illustrates the three sets of voltage values JV1, JV2, and JV3 extracted for the EtA1, EtA2, and EtA3 sets. At the end of extraction 504, N sets of voltage values JV1, …, JVN are All voltage value sets JV are obtained using the same technique, with the same time index deviations from the time index tR of point R. By applying the same predetermined set EA to each of the time indices tR1, …, tRN of points R1, …, RN, the structure of all voltage value sets JV1, …, JVN is similar: in each voltage value set JV, the first voltage value corresponds to the deviation -A(i) from peak R, and then the i+1 voltage value corresponds to peak R, and the jth voltage value corresponds to the deviation A°(j) from peak R. Thus, the temporal information of each voltage value is converted into a position within the voltage value set JV. In particular, the identical structure between the voltage value sets JV allows for the generation of simplified data for the deep learning algorithm. In an embodiment illustrated in diagram (i) of [Fig. 7], the distances between two consecutive AL(K) gaps and / or between two consecutive AR(k) gaps are regular. This means that the ECG 208 module extracts voltage values from the ECG signal at regular intervals around point R. The choice of values for i and j, and the predetermined values AL(k) and AR(Kk), depends on the information in the ECG signal that allows the ECG module 208 to classify the signal. Therefore, this choice also depends on what the deep learning algorithm needs to process. In one embodiment illustrated in diagram (ii) of [Fig. 7], ai is different from j. In another embodiment, i and j are included to ensure that the preprocessing recovers relevant information from the ECG signal. The numbers i and j can thus depend on the distances between successive gaps and the resampling value 404. The determination of i and j is therefore done on a case-by-case basis. However, as an order of magnitude, a functional analysis method 400 can be obtained with i and j less than 100, or even less than 40, for example, between 25 and 35. In an embodiment illustrated in diagram (iii) of [Fig.7], the distances between two consecutive AL(Kk) gaps and / or between two consecutive AR(k) gaps are not regular. In a fictional example (for illustrative purposes only), if the ECG signal includes relevant information between 0.2s and 0.1s before the R peak and between 0.2s and 0.3s after the R peak, the predetermined set EA can be chosen to generate more temporal indices in these areas than in others. Thus, in the fictional example, we can have EA = [-0.30s; -0.25s; -0.20s; -0.18s; -0.16s; -0.14s; -0.12s; -0.10s; -0.5s; Os; +0.05s; +0.10s; +0.15s; +0.205s; +0.225; +0.24s; +0.265; +0.285; +0.30s; +0.35s; +0.40s]. The preprocessing step 406 then includes, via the ECG module 208, a generation 506 of ECG datasets (called DS datasets) which serve as input for the deep learning algorithm for characterization 408. This input can be supplemented with other data, but, more specifically in one embodiment, the DS dataset serves as the single input to the deep learning algorithm. The DS dataset includes in particular two series: a time series using the time indices of the plurality of points R, i.e. the time indices tR1, …, tRN and a voltage series using the voltage value sets JV1, …, JVN of the N QRS complexes identified in the ECG signal. The time series is used to inform the deep learning algorithm about the relative positions of the R peaks. Specifically, in one embodiment, the time series includes the RR intervals of the QRS complexes, i.e., {tR2-tRI, t{R3-tR2, …,}. This information allows, among other things, the calculation of the heart rate and its variations. The voltage series is used to inform the deep learning algorithm about the shape of the ECG signal and in particular the shape of each PQRST complex. In one embodiment, the DS dataset does not include any other time indices than those of the R peaks: the position of the voltage values in the value sets provides sufficient information to the classifier. In one embodiment, the deep learning algorithm is a classifier. It is then trained to classify the input according to a plurality of classes. In the case of an ECG classification algorithm, the following classes might be used: "poor ECG signal quality," "atrial fibrillation," "sinus rhythm," and "other" (default class). The number of classes depends on the type of classification desired and, consequently, on the specific characteristics of the ECG signal that need to be identified. In one embodiment, the deep learning algorithm is a regressor. It is then trained to assign a value to the input. In the case of an ECG classification algorithm, this value might represent the probability of the presence of a cardiac abnormality. The 406 preprocessing method is specifically designed to reduce the computational load associated with inference by the deep learning algorithm. In other words, to offload the deep learning algorithm, the 406 preprocessing method generates a small DS dataset with an identical structure for each QRS complex: the input dimension is thus drastically reduced. More specifically, the constant positioning of point R in the dataset significantly reduces the complexity of the deep learning algorithm. Therefore, the structure of the DS dataset allows for factoring the complexity of the deep learning algorithm, which executes a simple operation N times (N being the number of QRS complexes in the input dataset) instead of executing a very complex operation once. However, Executing multiple simple operations, compared to executing a single complex operation, has significant technical consequences, particularly regarding RAM usage and algorithm training, which then becomes a simple task. These considerations are critical for portability in a portable device. For example, when the ECG signal comprises N QRS complexes and each set of voltage values comprises 61 voltage values (i=j=30, plus the voltage value of point R), the input to the deep learning algorithm is of size 61xN; but with the above-mentioned factorization, the input data of the deep learning algorithm is in fact reduced to size 61. Conversely, in machine learning algorithms where the entire digital ECG signal is used as input, the input size is significantly larger: for a 30-second ECG signal at a frequency of 300 Hz, the size is 30 x 300 = 30,000 points. Furthermore, the machine learning algorithm has no prior information about the input ECG signal and must extract the relevant features itself during inference. Within the framework of this description, for a 30-second ECG signal with 30 QRS complexes, the same inference is applied 30 times over windows of size 61. The ECG 400 analysis method can be applied to any channel of an ECG, for example a multi-channel ECG (according in particular to the IEC 60601-2-47 standard). The deep learning algorithm can operate continuously, over sliding windows (e.g., 30 seconds), with a granularity on the order of a second. This means that the deep learning algorithm can generate real-time (e.g., every second) characterizations of ECG signals. It is therefore possible to apply the ECG 400 analysis method to a continuous chest heart rate monitor. If a cardiac event occurs, the user can be notified almost in real time (with a delay equal to the duration of the acquisition window, which is typically 30 seconds). This continuous operation is possible on a low-power device thanks to the synergy allowed between pre-processing 406 and characterization 408. Description of an embodiment of the deep learning algorithm The deep learning algorithm can comprise a two-level neural network, each level containing, for example, a set of convolutional or dense layers. The first level can process the tension series of the DS dataset, and the second level can process the time series of the DS dataset. In one embodiment, the number of trainable parameters of the deep learning algorithm is less than 5000. As mentioned earlier, the deep learning algorithm can be a classifier or a regressor. Training The deep learning algorithm is pre-trained. In particular, pre-processing 406 applies identically to a deep learning algorithm training method. Therefore, ECG analysis method 400 also functions as a training method. As previously discussed, the small size of the DS dataset for the deep learning algorithm has two implications: inference is resource-efficient and training is economical in the amount of training data. It should be remembered that a large training data set is expensive (in human and financial resources), particularly because labeling training data is a tedious and costly process. Acceptable performance was observed from approximately 500 training ECG signals. Without input dimensionality reduction as described herein, such performance is not achieved with 500 training ECG signals. ÇC |. i Thanks to preprocessing, the deep learning algorithm can have a small size. For example, the computer program whose instructions allow the implementation of the ECG analysis method 400 (which therefore includes preprocessing 406 and characterization 408) can weigh less than 100 KB, or even less than 60 KB, or less than 20 KB, or even less than 10 kB. The computer program is typically a binary in a low-level language (e.g., C), to simplify integration into any suitable device. Similarly, thanks to preprocessing, the deep learning algorithm can require minimal flash memory. For example, the ECG 400 analysis method uses less than 100kB of flash memory, preferably less than 50kB, preferably less than 10kB, or even less than 5kB. Similarly, thanks to preprocessing, the deep learning algorithm can require minimal RAM. For example, the RAM usage of the ECG 400 analysis method is less than 20 KB, or even 10 KB. Similarly, thanks to preprocessing, the algorithm can consume very little energy. Similarly, thanks to preprocessing, the deep learning algorithm consumes less than 2 megaFlops of the processor. With these specifications, the computer program incorporating the ECG 400 analysis method can be easily installed on a variety of devices: watches, patches, torso, scales, map, etc. Description of the tracing module In another aspect, the ECG 208 module can also generate ECG signal traces directly usable by a doctor, via a visualization method 800, illustrated in [Fig.8]. The ECG 208 module uses the resampled signal after the 404 resampling. The visualization method 800 therefore includes, downstream of the resampling 404, a filtering 802 of the ECG signal, a detection 804 of the R peaks (similarly to the detection 502), a superposition 806 of each of the superimposed QRS complexes of the ECG signal centered on the R peaks and finally a display 808 of said superposition. Figure 8 illustrates in graph (i) the raw ECG signal 810 (noisy), before filtering 802, the filtered ECG signal 812 (noiseless) after filtering 802 and in graph (ii) the result 814 of the display 808. On Figure 8, a superposition 816 of the unfiltered QRS complexes has been shown for comparison. The 800 visualization method thus allows the doctor to assist in the interpretation of the ECG signal: the position of the P, Q, R, S, or T peaks is more accessible. The execution of the visualization method by the ECG 208 module, which also implements the measurement method 400 on the same ECG signals, allows a holistic approach to the ECG, with continuous monitoring by an algorithm and spot monitoring by a doctor. The visualization method 800 may be independent of the analysis method 400 or incorporated therein.
Claims
Claims
1. Method for analyzing (400) an electrocardiogram signal, ECG, the ECG signal comprising QRS complexes with an R peak, the analysis method (400) being implemented by an ECG module, the method comprising: receiving (402) a digital ECG signal, the digital ECG signal corresponding to points each defined by a time index and a voltage value, preprocessing (404) the received digital ECG signal, the preprocessing comprising: determination (502), for a plurality (N) of QRS complexes of the digital ECG signal, index finger temporal of the point representing the peak R, called point R, of each QRS complex, extraction (504), around each point R, of a game of voltage values (TV), the set of values of voltage including the voltage values of a set (E) of points of the ECG signal, the set of point being determined by a pre-set determined (EAÀ) of time index deviations from the time index of point R, generation (506) of an ECG dataset (DS) including: a time series using indexes temporal (t1, .…, tn) of the plurality of points R (R1,...Rn). a series of tensions using the games of voltage values, in which the voltage values of the R points are reg- fully arranged, characterization (408) of the ECG signal using the ECG dataset as input to a learning algorithm
2. The analysis method (400) of claim 1, wherein the predetermined set (EA) of time index deviations is a predetermined set of positive and negative time index deviations.
3. An analysis method (400) according to any one of claims 1 to 2, wherein the predetermined set of time index deviations includes a zero deviation, in other words the series includes the value of the voltage of the plurality of R points.
4. An analysis method (400) according to any one of claims 1 to 3, in which the time series comprises the time index deviations between two successive time indexes of point R (tR2-tR1, tR3-tR2, saw}
5. An analysis method (400) according to any one of claims 1 to 4, in which the point set includes i points before the index temporal of point R, point R and j points after the temporal index, by example i=j and for example 1 and j are between 20 and 40.
6. Analysis method (400) according to any one of claims 1 to 5, in which the ECG dataset (DS) is the only input of the deep learning algorithm.
7. An analysis method (400) according to any one of claims 1 to 6, in which the ECG dataset (DS) is composed only of said time series and said voltage series.
8. An analysis method (400) according to any one of claims 1 to '7, in which the deep learning algorithm includes a network multi-level and single-level convolutional neural network processes games of voltage values, which all have an identical structure, allowing thus a factorization of information.
9. An analysis method (400) according to any one of claims 1 to 8, in which the deep learning algorithm is a classifier and the output of the classifier is a probability among a plurality of classes, the plurality of classes comprising at least two classes, for example between two and five classes.
10. A computer program comprising instructions which, when the program is executed by an ECG module, drive the ECG module to implement an analysis method according to any of the re- claims | at 9.
11. | Computer program according to claim 10, wherein the computer program weighs at most 100KB, preferably less than 60KB, preferably less than 20KB and preferably even less less than 10KB.
12. A computer-readable recording medium comprising a computer program according to claim 10 or 11.
13. Electrocardiogram module (208), called ECG module, comprising a processor (212) and a memory (214), the ECG module (208) being configured to implement a method according to any of claims 1 to 9.
14. The ECG module (208) of claim 13, wherein performing the method according to any one of claims 1 to 9 consumes less than 2 megaFlops of processor and / or consumes memory volatile less than 20 KB, for example equal to or less than 10 KB.
15. Electrocardiogram analysis device (200), ECG, comprising electrodes (102, 104, 106) and an ECG module (208) according to one of any of claims 13 to 14, the ECG module (208) receiving a digital ECG signal from an analog ECG signal obtained by the electrodes (102, 104, 106).
Citation Information
Patent Citations
Tactile switch for an electronic device
WO2015021391A1
Universal ECG electrode module for smartphone
WO2015035251A1
Electronic device having electrode measuring biological signal
WO2021020706A1
Oximeter wristwatch
WO2021204809A1
Method for classifying type of heartbeat and apparatus using the same
US20200289010A1
