Sinus and junctional ectopic heart beat clustering method, device, equipment and medium
By identifying R waves and P waves in ECG data, combined with wavelet decomposition and threshold filtering, the problem of difficulty in distinguishing sinus and junctional heartbeats is solved, accurate clustering and discrimination of ECG data is achieved, and analysis efficiency and accuracy are improved. sex.
Patent Information
- Application Number
- CN202210587628.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-05-27
AI Technical Summary
Existing ECG dynamic analysis algorithms fail to effectively differentiate between sinus beats and junctional beats, leading to confusion and affecting the accuracy of subsequent heart rhythm analysis and application scenarios.
By acquiring electrocardiogram data, identify the R wave peak point and search for the P wave peak point in the decreasing direction of time, calculate the PR interval, and combine the subject's PR interval with the identification of sinus P waves and non-sinus P waves, using wavelet decomposition and thresholding. Screen to identify sinus and junctional heart beats if specific conditions are met.
It achieves accurate clustering and discrimination of narrow QRS heartbeats, shortens the analysis time, improves the accuracy of analysis, and reduces the burden on doctors.
Smart Images

Figure CN115089192B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of cluster analysis, and in particular to a method, device, equipment and medium for clustering sinus and junctional ectopic heart beats. Background Art
[0002] In terms of the morphological manifestations of the electrocardiogram, sinus beats N and junctional beats J, in the absence of special circumstances (such as bundle branch block), belong to the same narrow QRS complex. The R waves of these two types of heartbeats are both high and sharp, with the same shape, and the difference lies mainly in the P waves around them, which are obviously different.
[0003] However, among the many algorithms for automatic analysis of Holter, most of them focus on R waves, and do not analyze P waves. The reason is that P waves have small amplitudes, blunt peaks, difficult to define landmarks, and are greatly affected by noise, artifacts, and baseline drift, resulting in a high recognition error rate.
[0004] Therefore, after the current Holter clustering algorithm analysis, because the P waves with differences are not effectively analyzed, there is often a situation where normal sinus beats N and abnormal junctional beats J are mixed in the same group of templates. This will cause great difficulties in the subsequent rhythm analysis of the heartbeat or other application scenarios. Summary of the invention
[0005] Based on this, it is necessary to provide a method, device, equipment and medium for clustering sinus and junctional ectopic beats to solve the problem that normal sinus beats N and abnormal junctional beats J are difficult to distinguish.
[0006] A method for clustering sinus and junctional ectopic heart beats, the method comprising:
[0007] Acquire monitored electrocardiogram data, perform cluster analysis on the electrocardiogram data, and obtain narrow QRS heartbeats from the obtained cluster analysis results; wherein the narrow QRS heartbeats are a collection of mixed sinus heartbeats and junctional heartbeats;
[0008] Identify the R wave peak point of the target heartbeat, search for the P wave peak point in a decreasing direction based on the R wave peak point of the target heartbeat, and use the time interval between the searched P wave peak point and the R wave peak point as the PR interval of the target heartbeat to obtain the PR interval of the narrow QRS heartbeat; wherein the target heartbeat is any one of the narrow QRS heartbeats;
[0009] The i-th heartbeat is judged, and if the PR interval of the i-th heartbeat is within a preset PR interval range, the i-th heartbeat is determined to be a sinus heartbeat; wherein the i-th heartbeat is any one of the narrow QRS heartbeats, and the initial value of i is 1;
[0010] If the i-th heartbeat is not determined to be a sinus heartbeat, identifying a main PR interval in the i-th heartbeat, and identifying a sinus P wave and a non-sinus P wave in the i-th heartbeat; wherein the main PR interval indicates a continuous and stable PR interval;
[0011] If the identification results of the subject PR interval, the sinus P wave and the non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, the i-th heartbeat is determined as a junctional ectopic heartbeat;
[0012] If the i-th heartbeat is neither determined as a sinus beat nor as a junctional ectopic beat, the i-th heartbeat is determined as a problematic heartbeat;
[0013] Let i=i+1, and return to execute the step of distinguishing the i-th heartbeat and subsequent steps until i is greater than the number of narrow QRS heartbeats.
[0014] In one embodiment, searching for a P wave peak point in a direction of decreasing time based on an R wave peak point of a target heartbeat includes:
[0015] Acquire a segment of the ECG signal containing the target heartbeat, perform four-layer wavelet decomposition on the segment of the ECG signal, and obtain four-layer wavelet coefficients after decomposition;
[0016] Determine the P wave search window of the target heartbeat, calculate the background noise threshold according to the amplitude of the four-layer wavelet coefficient, and search for a local extreme point whose amplitude is greater than the background noise threshold in the four-layer wavelet coefficient within the P wave search window; wherein the background noise threshold indicates the amplitude of the noise in the four-layer wavelet coefficient;
[0017] If the number of local extreme value points searched is greater than a preset first quantity threshold, a significant threshold is calculated according to the absolute value of the amplitude of the four-layer wavelet coefficients in the P wave search window, and a target modulus extreme value pair is searched among the local extreme value points greater than the significant threshold; wherein the modulus extreme value pair is an extreme value pair composed of a local maximum value point and a local minimum value point within the search range, and the time interval between the local maximum value point and the local minimum value point in the target modulus extreme value pair is less than a preset time interval threshold, and the significant threshold indicates a minimum amplitude critical point in the four-layer wavelet coefficients corresponding to a significant fluctuation area in the segment electrocardiogram signal;
[0018] The zero-crossing point between the target modulus extreme value pair is taken as the P-wave peak point.
[0019] In one embodiment, determining the P wave search window of the target heartbeat includes:
[0020] Identify the R wave peak point of the previous heartbeat, and calculate the starting point of the P wave search window according to the R wave peak point of the previous heartbeat and the R wave peak point of the target heartbeat; wherein the previous heartbeat is the heartbeat monitored at a time node before the target heartbeat;
[0021] The starting point of the Q wave of the target heartbeat is identified, and the starting point of the Q wave is used as the ending point of the P wave search window.
[0022] In one embodiment, the method further comprises:
[0023] The absolute value of the amplitude of the point earlier in time among the target modulus extreme value pair is taken as the first modulus extreme value, and the absolute value of the amplitude of the point later in time among the target modulus extreme value pair is taken as the second modulus extreme value;
[0024] Starting from the point in front of the target modulus extreme value pair in time, search for the first point that meets the first condition in the direction of decreasing time as the P wave starting point; wherein the first condition is that the absolute value of the amplitude of the point is less than the first modulus extreme value n is the preset coefficient;
[0025] Starting from the point with the later time in the target modulus extreme value pair, search in the direction of increasing time for the first point that meets the second condition as the P wave termination point; wherein the second condition is that the absolute value of the amplitude of the point is less than the second modulus extreme value The P wave starting point, the P wave peak point and the P wave starting point are the basis for classifying the problematic heartbeat as a sinus beat or a junctional ectopic heartbeat.
[0026] In one embodiment, the identifying the main PR interval in the narrow QRS heartbeat includes:
[0027] The variance of a second threshold number of consecutive PR intervals is calculated. If the calculated variance exceeds a preset variance threshold, the mean of the second threshold number of consecutive PR intervals is used as the subject PR interval.
[0028] In one embodiment, the identifying of sinus P waves and non-sinus P waves in P waves comprises:
[0029] If there are target continuous P waves among the P waves, the number of continuous P waves is greater than or equal to a preset third number threshold, the PR intervals of all the P waves are within a preset PR interval range, and any two P waves meet a preset approximation condition, then the target continuous P waves are regarded as sinus P waves;
[0030] P waves other than the sinus P wave are regarded as non-sinus P waves.
[0031] In one embodiment, the method further comprises:
[0032] Get the modulus extreme value pair of two P waves;
[0033] Calculate the ratio between the widths of the two modulus extreme value pairs corresponding to the two P waves, and use the calculation result as the width ratio; wherein the width of the modulus extreme value pair corresponding to the P wave is the time interval between the local maximum point and the local minimum point in the modulus extreme value pair;
[0034] Calculate the ratio between the slopes of the two modulus extreme value pairs corresponding to the two P waves, and use the calculation result as the slope ratio; wherein the slope of the modulus extreme value pair corresponding to the P wave is the ratio of the amplitude difference between the amplitude of the local maximum point and the amplitude difference between the local minimum point in the modulus extreme value pair, and the time interval between the local maximum point and the local minimum point;
[0035] If the width ratio is within a preset width ratio range, and the slope ratio is within a preset slope ratio range, it is determined that the two P waves satisfy a preset approximation condition.
[0036] In one embodiment, if the identification results of the subject PR interval, the sinus P wave and the non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, then determining the i-th heartbeat as a junctional ectopic heartbeat includes:
[0037] If no P wave is found within the main PR interval of the preset multiple of the i-th heart beat, the i-th heart beat is determined as a junctional ectopic heart beat;
[0038] If the i-th heartbeat finds a sinus P wave, and the time by which the PR interval of the i-th heartbeat is shorter than the main PR interval of the i-th heartbeat is greater than a preset first duration, the i-th heartbeat is determined to be a junctional ectopic heartbeat;
[0039] If a non-sinus P wave is found in the i-th heartbeat, and the time by which the PR interval of the i-th heartbeat is shortened compared to the PR interval of the i-th heartbeat is less than a preset second duration, the i-th heartbeat is determined to be a junctional ectopic heartbeat; wherein the second duration is greater than the first duration.
[0040] A device for clustering sinus and junctional ectopic heartbeats, the device comprising:
[0041] An ECG data acquisition module, used to acquire monitored ECG data, perform cluster analysis on the ECG data, and acquire narrow QRS heartbeats from the obtained cluster analysis results; wherein the narrow QRS heartbeats are a collection of mixed sinus heartbeats and junctional heartbeats;
[0042] A P wave identification module is used to identify the R wave peak point of the target heartbeat, search for the P wave peak point in the direction of decreasing time based on the R wave peak point of the target heartbeat, and use the time interval between the searched P wave peak point and the R wave peak point as the PR interval of the target heartbeat to obtain the PR interval of the narrow QRS heartbeat; wherein the target heartbeat is any one of the narrow QRS heartbeats; and identify the main PR interval in the narrow QRS heartbeat, and identify the sinus P wave and the non-sinus P wave in the P wave; wherein the main PR interval indicates a continuous and stable PR interval;
[0043] A cycle discrimination module is used to discriminate the i-th heartbeat, and if the PR interval of the i-th heartbeat is within a preset PR interval range, the i-th heartbeat is determined to be a sinus heartbeat; wherein the i-th heartbeat is any one of the narrow QRS heartbeats, and the initial value of i is 1; if the i-th heartbeat is not determined to be a sinus heartbeat, the main PR interval in the i-th heartbeat is identified, and the sinus P wave and non-sinus P wave in the i-th heartbeat are identified; wherein the main PR interval indicates a continuous and stable PR interval; if the identification results of the main PR interval, the sinus P wave and the non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, the i-th heartbeat is determined as a junctional ectopic heartbeat; if the i-th heartbeat is neither determined as a sinus heartbeat nor as a junctional ectopic heartbeat, the i-th heartbeat is determined as a problem heartbeat; let i=i+1, return to execute the step of distinguishing the i-th heartbeat and subsequent steps, until i is greater than the number of narrow QRS heartbeats.
[0044] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the above-mentioned sinus and junctional ectopic heartbeat clustering method.
[0045] A sinus and junctional ectopic heartbeat clustering device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the sinus and junctional ectopic heartbeat clustering method.
[0046] The present invention provides a method, device, equipment and medium for clustering sinus and junctional ectopic heartbeats. First, the monitored electrocardiogram data is obtained, a preliminary cluster analysis is performed on the electrocardiogram data, and a narrow QRS heartbeat is obtained from the obtained cluster analysis results. This narrow QRS heartbeat is a collection of mixed sinus heartbeats and junctional heartbeats, which needs to be further divided. Then, the R wave peak point of the target heartbeat is identified, and the P wave peak point is searched in the direction of time reduction based on the R wave peak point of the target heartbeat. The time interval between the searched P wave peak point and the R wave peak point is used as the PR interval of the target heartbeat to obtain the PR interval of the narrow QRS heartbeat. Then the narrow QRS heartbeat is cyclically discriminated. First, if the PR interval of the i-th heartbeat is within the preset PR interval range, the i-th heartbeat is determined as a sinus heartbeat; then, if the i-th heartbeat is not determined as a sinus heartbeat, the main PR interval in the i-th heartbeat is identified, and the sinus P wave and non-sinus P wave in the i-th heartbeat are identified. If the identification results of the subject's PR interval, sinus P wave and non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, the ith heartbeat is determined to be a junctional ectopic heartbeat; finally, if the ith heartbeat is neither determined to be a sinus beat nor a junctional ectopic heartbeat, the ith heartbeat is determined to be a problem heartbeat; then the cycle is repeated, with i=i+1, and the step of discriminating the ith heartbeat and subsequent steps are returned to execute until i is greater than the number of narrow QRS heartbeats, thereby accurately clustering and discriminating the two types of narrow QRS heartbeats, shortening the analysis time and alleviating the burden on the analyst. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] in:
[0049] Figure 1 A schematic diagram of a process of clustering sinus and junctional ectopic heart beats in one embodiment;
[0050] Figure 2 A schematic diagram of the structure of a device for clustering sinus and junctional ectopic heartbeats in one embodiment;
[0051] Figure 3 1 is a structural block diagram of a sinus and junctional ectopic heartbeat clustering device in one embodiment. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] like Figure 1 As shown, Figure 1 FIG. 1 is a flow chart of a method for clustering sinus and junctional ectopic heartbeats in an embodiment. The method for clustering sinus and junctional ectopic heartbeats in this embodiment includes the following steps:
[0054] Step 102, obtaining monitored electrocardiogram data, performing cluster analysis on the electrocardiogram data, and obtaining narrow QRS heartbeats from the obtained cluster analysis results.
[0055] Among them, the narrow QRS beat is a mixture of sinus beats and junctional beats.
[0056] Specifically, the process of obtaining the monitored ECG data in this step is as follows: for the ECG signals that are constantly changing on the human body surface, the sensors (electrodes) and lead wires on the human chest are introduced into the Holter carrier, and then distributed by the lead conversion circuit, and connected to the input ends of 8 ECG amplifiers. After amplification, the signal is sent to the analog-to-digital converter (A / D) for quantization and digital processing, and the ECG data of 12 lead channels are established and formed and stored in the memory.
[0057] Then, after all the ECG data monitoring is completed, under the control and instructions of the main analysis system, the ECG data in the carrier are imported into the main analysis system through the connecting line. After digital processing such as filtering and smoothing and preliminary cluster analysis, all heart beat attributes within the effective range are identified and marked to obtain the cluster analysis results.
[0058] In the cluster analysis results, for sinus beats N and junctional beats J, since the above process does not effectively analyze the P waves with differences, there is often a situation where normal sinus beats N and abnormal junctional beats J are confused in the same group of templates, that is, the narrow QRS complex here. The present invention achieves accurate division of sinus beats N and junctional beats J through subsequent steps.
[0059] Step 104, identify the R wave peak point of the target heartbeat, search for the P wave peak point in the direction of decreasing time based on the R wave peak point of the target heartbeat, and use the time interval between the searched P wave peak point and the R wave peak point as the PR interval of the target heartbeat to obtain the PR interval of the narrow QRS heartbeat.
[0060] The target heartbeat is any one of the narrow QRS heartbeats, that is, this step performs the same processing on all the narrow QRS heartbeats.
[0061] Specifically, the method for identifying the peak point of the R wave is as follows: the R wave belongs to the QRS complex, which includes Q wave, R wave and S wave. The basic characteristics of the QRS complex are: the first downward wave in each QRS complex is the Q wave, the next upward wave is the R wave, and the last downward wave is the S wave. According to the basic characteristics of the QRS complex, the QRS complex in the target heartbeat is first detected. Furthermore, the characteristic of the peak point of the R wave in the QRS complex is the point with the largest amplitude in each QRS complex. According to this characteristic, the peak point of the R wave in each QRS complex is identified and marked.
[0062] Next, based on the R wave peak point of the target heartbeat, the P wave peak point is searched in the direction of decreasing time. In a specific embodiment, the search process includes:
[0063] (1) Obtain a segment of the ECG signal containing the target heartbeat, perform four-layer wavelet decomposition on the segment of the ECG signal, and obtain the decomposed four-layer wavelet coefficients.
[0064] The segmented ECG signal here refers to the data of the past 3 seconds with the R wave peak point as the node. Since the signal actually collected by the device is discrete, the wavelet decomposition adopts binary wavelet transformation to semi-discretize the continuous wavelet transform. The binary wavelet transform of the digital signal f(n) is expressed as follows using Mallat algorithm:
[0065]
[0066] Among them, S 2j is the smoothing operator, S 2j f(n)=a j ,a j is the low-frequency coefficient of the signal, reflecting the overall information; w 2j f(n)=d 1 ,d 1 It is the high-frequency coefficient of the signal, reflecting the detail information.
[0067] In this step, at s=2 4 The ECG signal is decomposed layer by layer to obtain the four-layer wavelet coefficients.
[0068] (2) Determine the P wave search window of the target heartbeat, calculate the background noise threshold according to the amplitude of the four-layer wavelet coefficients, and search for local extreme points whose amplitude is greater than the background noise threshold among the four-layer wavelet coefficients within the P wave search window.
[0069] The P wave search window indicates the search range of the P wave in the time dimension.
[0070] In a specific embodiment, the P wave search window is determined by identifying the R wave peak point rpeak_loc(i-1) of the previous heartbeat, where the previous heartbeat is the heartbeat monitored at a time node before the target heartbeat. Then, the starting point Win_start(i) of the P wave search window is calculated based on the R wave peak point rpeak_loc(i-1) of the previous heartbeat and the R wave peak point rpeak_loc(i) of the target heartbeat. The specific calculation formula is:
[0071] Win_start(i)=rpeak_loc(i-1)+250ms
[0072] +(2 / 9)*(rpeak_loc(i)-rpeak_loc(i-1))
[0073] At the same time, the Q wave starting point of the target heartbeat is identified and used as the end point Win_end(i) of the P wave search window. In this way, the P wave search window [Win_start(i), Win_end(i)] can be obtained.
[0074] Next, the background noise threshold is calculated, which indicates the amplitude of the noise in the four-layer wavelet coefficients. The specific calculation formula is:
[0075]
[0076] in, represents the four-layer wavelet coefficients, n 1 is the data of the entire ECG signal, and rms means root mean square.
[0077] It can be understood that the P wave peak point is only located in the P wave search window [Win_start(i), Win_end(i)]. And because the P wave peak point is relatively steep, and the signal with an amplitude less than the background noise threshold is relatively flat, the P wave peak point only appears in the interval greater than the background noise threshold. Through this step, the P wave peak point can be effectively preliminarily screened.
[0078] (3) If the number of local extreme value points found is greater than a preset first quantity threshold, a significance threshold is calculated based on the absolute value of the amplitude of the four-layer wavelet coefficients in the P-wave search window, and the target modulus extreme value pair is searched for among the local extreme value points greater than the significance threshold.
[0079] Specifically, in the present invention, the first quantity threshold can be set to 2, and of course it can also be set to other values according to actual conditions. If the number of local extreme value points found is greater than the preset first quantity threshold, it means that the number requirement of the preliminary screening in step (2) may exist, and the search in step (3) is continued.
[0080] In this step, the calculation formula of the significant threshold is:
[0081]
[0082] Among them, n 2 is the four-layer wavelet coefficient in the P wave search window. The significant threshold indicates the minimum amplitude critical point in the four-layer wavelet coefficient, corresponding to the significant fluctuation area in the segment ECG signal. That is to say, for a local extreme point in the four-layer wavelet coefficient, if the amplitude of the point is greater than the significant threshold, the local extreme point is located in the significant fluctuation area in the segment ECG signal, wherein the significant fluctuation area includes the P wave peak point, that is, the search result in step (2) is further accurately located. On the contrary, if the amplitude of the local extreme point is less than or equal to the significant threshold, it is determined that it does not belong to the significant fluctuation area.
[0083] Next, search for the target modulus extreme value pair among the local extreme value points that meet the conditions. The modulus extreme value pair is an extreme value pair consisting of a local maximum point and a local minimum point within the search range, which can be expressed as [left, right], where left is a local maximum point or a local minimum, and right can also be a local maximum point or a local minimum. The local maximum point and the local minimum point in the target modulus extreme value pair here must also meet the time interval less than the preset time interval threshold (for example, 120ms, of course, it can also be set to other values).
[0084] (4) The zero-crossing point between the target modulus extreme value pair is taken as the P-wave peak point.
[0085] After finding the P wave peak point, the time interval between the searched P wave peak point and the R wave peak point is used as the PR interval of the target heartbeat. The above steps (1)-(4) are performed on all narrow QRS heartbeats to obtain the PR intervals of all narrow QRS heartbeats.
[0086] Step 106, the ith heartbeat is judged to determine whether the PR interval of the ith heartbeat is within the preset PR interval range. If the PR interval of the ith heartbeat is within the preset PR interval range, step 108 is executed to determine the ith heartbeat as a sinus heartbeat. If the PR interval of the ith heartbeat is not within the preset PR interval range, step 110 is executed.
[0087] The i-th heartbeat is any one of the narrow QRS heartbeats, and the initial value of i is 1. That is, this step sequentially performs the same discrimination processing on all narrow QRS heartbeats starting from i=1.
[0088] In the present invention, the preset PR interval range is 0.12-0.2 seconds, and if the PR interval of the i-th heartbeat is within 0.12-0.2 seconds, it is determined to be a sinus heartbeat. Otherwise, step 110 is executed.
[0089] Step 110, identifying the main PR interval in the i-th heartbeat, and identifying the sinus P wave and non-sinus P wave in the i-th heartbeat.
[0090] The main PR interval indicates a continuous and stable PR interval. The main PR interval, sinus P wave and non-sinus P wave identified in this step are important discriminant factors for junctional ectopic heartbeats, which can be further discriminated through step 112.
[0091] In a specific embodiment, the subject PR interval is identified by calculating the variance of a second number threshold number of consecutive PR intervals. If the calculated variance exceeds the preset variance threshold, the mean of the second number threshold number of consecutive PR intervals is used as the subject PR interval. Optionally, the second number threshold number is set to 11 and the variance threshold number is set to 10ms in the present invention. Of course, other values can also be set according to actual conditions. When the above conditions are met, it is considered that a continuous and stable PR interval has occurred and is identified as the subject PR interval.
[0092] In a specific embodiment, the identification method of sinus P wave and non-sinus P wave is: if there is a target continuous P wave among the P waves, the number of continuous P waves is greater than or equal to a preset third quantity threshold, and the PR intervals of all P waves are within a preset PR interval range, and any two P waves meet a preset approximation condition, then the target continuous P wave is regarded as a sinus P wave. Optionally, the third quantity threshold is set to 3 in the present invention, and the preset PR interval range can be set to other values according to actual conditions. The preset approximation condition is a condition for determining that two P waves are similar, which can be set based on features such as width and slope. When the above conditions are met, a sinus P wave can be identified. Finally, P waves other than sinus P waves are identified as non-sinus P waves.
[0093] In a specific embodiment, the method of determining whether two P waves satisfy the preset approximation condition is as follows:
[0094] (1) Obtain the modulus extreme value pair of two P waves.
[0095] For example, for one of the P waves, P1, the corresponding modulus extreme value pair is [left1, right1], the value in the time dimension is [loc_left1, loc_right1], and the value in the amplitude dimension is
[0096] For another P wave, P2, the corresponding modulus extreme value pair is [left2, right2], the value in the time dimension is [loc_left2, loc_right2], and the value in the amplitude dimension is
[0097] (2) Calculate the ratio between the widths of the mode extreme value pairs corresponding to the two P waves, and use the calculation result as the width ratio.
[0098] Among them, the width of the modulus extreme value pair corresponding to the P wave is the time interval between the local maximum point and the local minimum point in the modulus extreme value pair. For example, in [left1, right1], left1 is the local maximum point and right1 is the local minimum point; in [left2, right2], left2 is the local maximum point and right2 is the local minimum point. The calculation formula for the width ratio is:
[0099] width_contr=(loc_right1-loc_left1) / (loc_right2-loc_left2)
[0100] It can be understood that the width of the mode extreme value pair corresponding to the P wave can also be defined as the time interval between the local minimum point and the local maximum point. Then the calculation formula of the width ratio can be adjusted accordingly without affecting the final result.
[0101] (3) Calculate the ratio between the slopes of the two pairs of modulus extreme values corresponding to the two P waves, and use the calculation result as the slope ratio.
[0102] Among them, the slope of the modulus extreme value pair corresponding to the P wave is the ratio of the amplitude difference between the local maximum point and the local minimum point in the modulus extreme value pair, and the time interval between the local maximum point and the local minimum point. For example, in [left1, right1], right1 is the local maximum point, and left1 is the local minimum point; in [left2, right2], right2 is the local maximum point, and left2 is the local minimum point. The calculation formula of the slope ratio is:
[0103]
[0104] It can be understood that the slope of the modulus extreme value pair corresponding to the P wave can also be defined as the ratio of the amplitude difference between the local minimum point and the local maximum point to the time interval between the local minimum point and the local maximum point. Then the calculation formula of the shoe ratio can be adjusted accordingly, which will not affect the final result.
[0105] (4) If the width ratio is within a preset width ratio range, and the slope ratio is within a preset slope ratio range, it is determined that the two P waves satisfy a preset approximation condition.
[0106] Optionally, in the present invention, the width ratio range is set to (0.7, 1.43), and the slope ratio range is set to (0.5, 2). Of course, they can also be set to other values according to actual conditions.
[0107] That is, in the present invention, if width_contr∈(0.7, 1.43) is satisfied, and slope_contr∈(0.5, 2) is satisfied, it is determined that the two P waves satisfy the preset approximation condition.
[0108] Step 112, determine whether the identification results of the main PR interval, sinus P wave and non-sinus P wave meet any preset junctional ectopic heartbeat determination condition. If the identification results of the main PR interval, sinus P wave and non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, then execute step 114 to determine the i-th heartbeat as a junctional ectopic heartbeat; if the identification results of the main PR interval, sinus P wave and non-sinus P wave do not meet the preset junctional ectopic heartbeat determination condition, then execute step 116 to determine the i-th heartbeat as a problem heartbeat.
[0109] In a specific embodiment, the situation where the identification results of the subject's PR interval, sinus P wave, and non-sinus P wave meet any preset junctional ectopic heartbeat determination condition includes:
[0110] (1) If no P wave is found within the main PR interval of the i-th heartbeat preset multiple, the i-th heartbeat is determined as a junctional ectopic heartbeat. Optionally, the preset multiple in the present invention is 1.2, and of course it can be set to other values according to actual conditions.
[0111] (2) If the i-th heartbeat finds a sinus P wave, and the time by which the PR interval of the i-th heartbeat is shorter than the main PR interval of the i-th heartbeat is greater than the preset first duration, the i-th heartbeat is determined to be a junctional ectopic heartbeat. Optionally, the preset first duration in the present invention is 20 ms, and of course it can also be set to other values according to actual conditions.
[0112] (3) If the i-th heartbeat searches for a non-sinus P wave, and the time by which the PR interval of the i-th heartbeat is shorter than the PR interval of the i-th heartbeat is less than the preset second duration, the i-th heartbeat is determined to be a junctional ectopic heartbeat. Optionally, the preset second duration in the present invention is 110 ms, and of course it can also be set to other values according to actual conditions, and at the same time, the preset second duration is required to be greater than the preset first duration.
[0113] At this time, if the above-mentioned conditions for determining junctional ectopic beats are still not met, the i-th beat will be determined as a problem beat. This part of the problem beats belongs to the narrow QRS beats that are difficult to define and can be further defined by other methods.
[0114] Step 118, set i=i+1, and return to execute step 106 and subsequent steps until i is greater than the number of narrow QRS heart beats.
[0115] After executing step 108, step 114, and step 116, step 118 is executed, and step 106 and subsequent steps are returned to execute until i is greater than the number of narrow QRS heart beats, that is, the cycle starts from i=1 and performs the same discrimination process on all narrow QRS heart beats.
[0116] After actual measurement, it was found that among the heart beat groups with consistent narrow QRS waveforms, the technical solution of the present invention can quickly and accurately distinguish sinus beats N and junctional beats J, with an accuracy rate of more than 98%.
[0117] Furthermore, the present invention can also identify the P wave starting point and the P wave starting point, and the specific implementation method is: for the target modulus extreme value pair [left, right] determined in step 114, the absolute value of the amplitude of the point earlier in time in the target modulus extreme value pair is taken as the first modulus extreme value, expressed as At the same time, the absolute value of the amplitude of the point at the later time in the target modulus extreme value is taken as the second modulus extreme value, which is expressed as
[0118] From the point in the target modulus extreme value pair that is earlier in time, that is, left, start searching in the direction of decreasing time for the first point that meets the first condition as the starting point of the P wave. Among them, the first condition is that the absolute value of the amplitude of the point is less than the first modulus extreme value n is a preset coefficient, which is optional. n is 3, but it can also be set to other values.
[0119] From the point that is later in time in the target modulus extreme value pair, that is, right, start searching in the direction of increasing time for the first point that meets the second condition as the P wave termination point; where the second condition is that the absolute value of the amplitude of the point is less than the second modulus extreme value Optionally, n is 3, and may be set to other values.
[0120] In this way, the P wave starting point, P wave peak point and P wave starting point can be found. The P wave starting point, P wave peak point and P wave starting point can be used as an important basis for further dividing the problem heartbeat into sinus beat or junctional ectopic beat, thereby further improving the accuracy of recognition.
[0121] The above-mentioned sinus and junctional ectopic heartbeat clustering method first obtains the monitored electrocardiogram data, performs preliminary cluster analysis on the electrocardiogram data, and obtains the narrow QRS heartbeat from the obtained cluster analysis results. This narrow QRS heartbeat is a collection of mixed sinus heartbeats and junctional heartbeats, which needs to be further divided. Next, the R wave peak point of the target heartbeat is identified, and the P wave peak point is searched in the direction of time reduction based on the R wave peak point of the target heartbeat. The time interval between the searched P wave peak point and the R wave peak point is used as the PR interval of the target heartbeat to obtain the PR interval of the narrow QRS heartbeat. Then the narrow QRS heartbeat is cyclically discriminated. First, if the PR interval of the i-th heartbeat is within the preset PR interval range, the i-th heartbeat is determined as a sinus heartbeat; then, if the i-th heartbeat is not determined as a sinus heartbeat, the main PR interval in the i-th heartbeat is identified, and the sinus P wave and non-sinus P wave in the i-th heartbeat are identified. If the identification results of the subject's PR interval, sinus P wave and non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, the ith heartbeat is determined to be a junctional ectopic heartbeat; finally, if the ith heartbeat is neither determined to be a sinus beat nor a junctional ectopic heartbeat, the ith heartbeat is determined to be a problem heartbeat; then the cycle is repeated, with i=i+1, and the step of discriminating the ith heartbeat and subsequent steps are returned to execute until i is greater than the number of narrow QRS heartbeats, thereby accurately clustering and discriminating the two types of narrow QRS heartbeats, shortening the analysis time and alleviating the burden on the analyst.
[0122] In one embodiment, Figure 2 As shown, a sinus and junctional ectopic heart beat clustering device is proposed, the device comprising:
[0123] The ECG data acquisition module 202 is used to acquire the monitored ECG data, perform cluster analysis on the ECG data, and acquire narrow QRS heartbeats from the obtained cluster analysis results; wherein the narrow QRS heartbeat is a collection of mixed sinus heartbeats and junctional heartbeats;
[0124] The P wave identification module 204 is used to identify the R wave peak point of the target heartbeat, search for the P wave peak point in the direction of decreasing time based on the R wave peak point of the target heartbeat, and use the time interval between the searched P wave peak point and the R wave peak point as the PR interval of the target heartbeat to obtain the PR interval of the narrow QRS heartbeat; wherein the target heartbeat is any one of the narrow QRS heartbeats; and identify the main PR interval in the narrow QRS heartbeat, and identify the sinus P wave and the non-sinus P wave in the P wave; wherein the main PR interval indicates a continuous and stable PR interval;
[0125] The cycle identification module 206 is used to identify the i-th heartbeat. If the PR interval of the i-th heartbeat is within the preset PR interval range, the i-th heartbeat is determined to be a sinus heartbeat; wherein the i-th heartbeat is any one of the narrow QRS heartbeats, and the initial value of i is 1; if the i-th heartbeat is not determined to be a sinus heartbeat, the main PR interval in the i-th heartbeat is identified, and the sinus P wave and non-sinus P wave in the i-th heartbeat are identified; wherein the main PR interval indicates continuous and stable PR interval; if the identification results of the main PR interval, sinus P wave and non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, the i-th heartbeat is determined as a junctional ectopic heartbeat; if the i-th heartbeat is neither determined as a sinus beat nor as a junctional ectopic heartbeat, the i-th heartbeat is determined as a problem heartbeat; let i=i+1, return to the step of determining the i-th heartbeat and subsequent steps, until i is greater than the number of narrow QRS heartbeats.
[0126] Figure 3 FIG. 2 shows an internal structure diagram of a device for clustering sinus and junctional ectopic heartbeats in one embodiment. Figure 3 As shown, the sinus and junctional ectopic heartbeat clustering device includes a processor, a memory and a network interface connected via a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the sinus and junctional ectopic heartbeat clustering device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the sinus and junctional ectopic heartbeat clustering method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can implement the sinus and junctional ectopic heartbeat clustering method. Those skilled in the art can understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the sinus and junctional ectopic heartbeat clustering device to which the scheme of the present application is applied. The specific sinus and junctional ectopic heartbeat clustering device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0127] A sinus and junctional ectopic heartbeat clustering device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: acquiring monitored electrocardiogram data, performing cluster analysis on the electrocardiogram data, and obtaining a narrow QRS heartbeat from the obtained cluster analysis results; identifying the R wave peak point of the target heartbeat, searching for a P wave peak point in a direction of decreasing time based on the R wave peak point of the target heartbeat, and using the time interval between the searched P wave peak point and the R wave peak point as the PR interval of the target heartbeat to obtain the PR interval of the narrow QRS heartbeat; distinguishing the i-th heartbeat, if the P wave peak point of the i-th heartbeat is If the R interval is within the preset PR interval range, the i-th heartbeat is determined to be a sinus beat; if the i-th heartbeat is not determined to be a sinus beat, the main PR interval in the i-th heartbeat is identified, and the sinus P wave and non-sinus P wave in the i-th heartbeat are identified; if the identification results of the main PR interval, sinus P wave and non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, the i-th heartbeat is determined to be a junctional ectopic heartbeat; if the i-th heartbeat is neither determined to be a sinus beat nor a junctional ectopic heartbeat, the i-th heartbeat is determined to be a problem heartbeat; let i=i+1, return to execute the step of distinguishing the i-th heartbeat and subsequent steps, until i is greater than the number of narrow QRS heartbeats.
[0128] A computer-readable storage medium stores a computer program, which implements the following steps when executed by a processor: obtaining monitored electrocardiogram data, performing cluster analysis on the electrocardiogram data, and obtaining a narrow QRS heartbeat from the obtained cluster analysis results; identifying the R wave peak point of the target heartbeat, searching for a P wave peak point in a direction of decreasing time based on the R wave peak point of the target heartbeat, and using the time interval between the searched P wave peak point and the R wave peak point as the PR interval of the target heartbeat to obtain the PR interval of the narrow QRS heartbeat; distinguishing the i-th heartbeat, if the PR interval of the i-th heartbeat is within the preset PR interval range, the i-th heartbeat is determined as a sinus heartbeat; if the i-th heartbeat is not determined as a sinus heartbeat, the main PR interval in the i-th heartbeat is identified, and the sinus P wave and non-sinus P wave in the i-th heartbeat are identified; if the identification results of the main PR interval, sinus P wave and non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, the i-th heartbeat is determined as a junctional ectopic heartbeat; if the i-th heartbeat is neither determined as a sinus heartbeat nor as a junctional ectopic heartbeat, the i-th heartbeat is determined as a problem heartbeat; let i=i+1, return to execute the step of distinguishing the i-th heartbeat and subsequent steps, until i is greater than the number of narrow QRS heartbeats.
[0129] It should be noted that the above-mentioned sinus and junctional ectopic heartbeat clustering method, device, equipment and computer-readable storage medium belong to a general inventive concept, and the contents of the sinus and junctional ectopic heartbeat clustering method, device, equipment and computer-readable storage medium embodiments are applicable to each other.
[0130] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0131] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0132] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for clustering sinus and junctional ectopic heart beats, characterized in that: The method comprises: Acquire monitored electrocardiogram data, perform cluster analysis on the electrocardiogram data, and obtain narrow QRS heartbeats from the obtained cluster analysis results; wherein the narrow QRS heartbeats are a collection of mixed sinus heartbeats and junctional heartbeats; Identify the R wave peak point of the target heartbeat, search for the P wave peak point in a decreasing direction based on the R wave peak point of the target heartbeat, and use the time interval between the searched P wave peak point and the R wave peak point as the PR interval of the target heartbeat to obtain the PR interval of the narrow QRS heartbeat; wherein the target heartbeat is any one of the narrow QRS heartbeats; The i-th heartbeat is judged, and if the PR interval of the i-th heartbeat is within a preset PR interval range, the i-th heartbeat is determined to be a sinus heartbeat; wherein the i-th heartbeat is any one of the narrow QRS heartbeats, and the initial value of i is 1; If the i-th heartbeat is not determined to be a sinus heartbeat, identifying a main PR interval in the i-th heartbeat, and identifying a sinus P wave and a non-sinus P wave in the i-th heartbeat; wherein the main PR interval indicates a continuous and stable PR interval; If the identification results of the subject PR interval, the sinus P wave and the non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, the i-th heartbeat is determined as a junctional ectopic heartbeat; If the i-th heartbeat is neither determined as a sinus beat nor as a junctional ectopic beat, the i-th heartbeat is determined as a problematic heartbeat; Let i=i+1, and return to execute the step of distinguishing the i-th heartbeat and subsequent steps until i is greater than the number of narrow QRS heartbeats.
2. The method according to claim 1, characterized in that: The step of searching for a P wave peak point in a direction of decreasing time based on an R wave peak point of a target heartbeat includes: Acquire a segment of the ECG signal containing the target heartbeat, perform four-layer wavelet decomposition on the segment of the ECG signal, and obtain four-layer wavelet coefficients after decomposition; Determine the P wave search window of the target heartbeat, calculate the background noise threshold according to the amplitude of the four-layer wavelet coefficient, and search for a local extreme point whose amplitude is greater than the background noise threshold in the four-layer wavelet coefficient within the P wave search window; wherein the background noise threshold indicates the amplitude of the noise in the four-layer wavelet coefficient; If the number of local extreme value points searched is greater than a preset first quantity threshold, a significant threshold is calculated according to the absolute value of the amplitude of the four-layer wavelet coefficients in the P wave search window, and a target modulus extreme value pair is searched among the local extreme value points greater than the significant threshold; wherein the modulus extreme value pair is an extreme value pair composed of a local maximum value point and a local minimum value point within the search range, and the time interval between the local maximum value point and the local minimum value point in the target modulus extreme value pair is less than a preset time interval threshold, and the significant threshold indicates a minimum amplitude critical point in the four-layer wavelet coefficients corresponding to a significant fluctuation area in the segment electrocardiogram signal; The zero-crossing point between the target modulus extreme value pair is taken as the P-wave peak point.
3. The method according to claim 2, characterized in that The step of determining a P wave search window of the target heartbeat comprises: Identify the R wave peak point of the previous heartbeat, and calculate the starting point of the P wave search window according to the R wave peak point of the previous heartbeat and the R wave peak point of the target heartbeat; wherein the previous heartbeat is the heartbeat monitored at a time node before the target heartbeat; The starting point of the Q wave of the target heartbeat is identified, and the starting point of the Q wave is used as the ending point of the P wave search window.
4. The method according to claim 2, characterized in that: The method further comprises: The absolute value of the amplitude of the point earlier in time among the target modulus extreme value pair is taken as the first modulus extreme value, and the absolute value of the amplitude of the point later in time among the target modulus extreme value pair is taken as the second modulus extreme value; Starting from the point in front of the target modulus extreme value pair in time, search for the first point that meets the first condition in the direction of decreasing time as the P wave starting point; wherein the first condition is that the absolute value of the amplitude of the point is less than the first modulus extreme value n is the preset coefficient; Starting from the point with the later time in the target modulus extreme value pair, search in the direction of increasing time for the first point that meets the second condition as the P wave termination point; wherein the second condition is that the absolute value of the amplitude of the point is less than the second modulus extreme value The P wave starting point, the P wave peak point and the P wave starting point are the basis for classifying the problematic heartbeat as a sinus beat or a junctional ectopic heartbeat.
5. The method according to claim 1, characterized in that The identifying the main PR interval in the narrow QRS heartbeat comprises: The variance of a second threshold number of consecutive PR intervals is calculated. If the calculated variance exceeds a preset variance threshold, the mean of the second threshold number of consecutive PR intervals is used as the subject PR interval.
6. The method according to claim 1, characterized in that The identifying of the sinus P wave and the non-sinus P wave in the P wave comprises: If there are target continuous P waves among the P waves, the number of continuous P waves is greater than or equal to a preset third number threshold, the PR intervals of all the P waves are within a preset PR interval range, and any two P waves meet a preset approximation condition, then the target continuous P waves are regarded as sinus P waves; P waves other than the sinus P wave are regarded as non-sinus P waves.
7. The method according to claim 6, characterized in that The method further comprises: Get the modulus extreme value pair of two P waves; Calculate the ratio between the widths of the two modulus extreme value pairs corresponding to the two P waves, and use the calculation result as the width ratio; wherein the width of the modulus extreme value pair corresponding to the P wave is the time interval between the local maximum point and the local minimum point in the modulus extreme value pair; Calculate the ratio between the slopes of the two modulus extreme value pairs corresponding to the two P waves, and use the calculation result as the slope ratio; wherein the slope of the modulus extreme value pair corresponding to the P wave is the ratio of the amplitude difference between the amplitude of the local maximum point and the amplitude difference between the local minimum point in the modulus extreme value pair, and the time interval between the local maximum point and the local minimum point; If the width ratio is within a preset width ratio range, and the slope ratio is within a preset slope ratio range, it is determined that the two P waves satisfy a preset approximation condition.
8. The method according to claim 1, characterized in that If the identification results of the subject PR interval, the sinus P wave and the non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, determining the i-th heartbeat as a junctional ectopic heartbeat, comprises: If no P wave is found within the main PR interval of the preset multiple of the i-th heart beat, the i-th heart beat is determined as a junctional ectopic heart beat; If the i-th heartbeat finds a sinus P wave, and the time by which the PR interval of the i-th heartbeat is shorter than the main PR interval of the i-th heartbeat is greater than a preset first duration, the i-th heartbeat is determined to be a junctional ectopic heartbeat; If a non-sinus P wave is found in the i-th heartbeat, and the time by which the PR interval of the i-th heartbeat is shortened compared to the PR interval of the i-th heartbeat is less than a preset second duration, the i-th heartbeat is determined to be a junctional ectopic heartbeat; wherein the second duration is greater than the first duration.
9. A device for clustering sinus and junctional ectopic heart beats, characterized in that: The device comprises: An ECG data acquisition module, used to acquire monitored ECG data, perform cluster analysis on the ECG data, and acquire narrow QRS heartbeats from the obtained cluster analysis results; wherein the narrow QRS heartbeats are a collection of mixed sinus heartbeats and junctional heartbeats; A P wave identification module is used to identify the R wave peak point of the target heartbeat, search for the P wave peak point in the direction of decreasing time based on the R wave peak point of the target heartbeat, and use the time interval between the searched P wave peak point and the R wave peak point as the PR interval of the target heartbeat to obtain the PR interval of the narrow QRS heartbeat; wherein the target heartbeat is any one of the narrow QRS heartbeats; and identify the main PR interval in the narrow QRS heartbeat, and identify the sinus P wave and the non-sinus P wave in the P wave; wherein the main PR interval indicates a continuous and stable PR interval; A cycle discrimination module is used to discriminate the i-th heartbeat, and if the PR interval of the i-th heartbeat is within a preset PR interval range, the i-th heartbeat is determined to be a sinus heartbeat; wherein the i-th heartbeat is any one of the narrow QRS heartbeats, and the initial value of i is 1; if the i-th heartbeat is not determined to be a sinus heartbeat, the main PR interval in the i-th heartbeat is identified, and the sinus P wave and non-sinus P wave in the i-th heartbeat are identified; wherein the main PR interval indicates a continuous and stable PR interval; if the identification results of the main PR interval, the sinus P wave and the non-sinus P wave meet any preset junctional ectopic heartbeat determination condition, the i-th heartbeat is determined as a junctional ectopic heartbeat; if the i-th heartbeat is neither determined as a sinus heartbeat nor as a junctional ectopic heartbeat, the i-th heartbeat is determined as a problem heartbeat; let i=i+1, return to execute the step of distinguishing the i-th heartbeat and subsequent steps, until i is greater than the number of narrow QRS heartbeats.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 8.
11. A sinus and junctional ectopic heartbeat clustering device, comprising a memory and a processor, characterized in that: The memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 8.
