Biological signal processing device and generation method of data for electrocardiogram analysis
The biological signal processing device generates a two-dimensional electrocardiogram analysis image combining waveform and rhythm information, addressing computational inefficiencies in existing methods to enable efficient arrhythmia detection through deep learning.
Patent Information
- Application Number
- JP2024113590
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-16
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 2024147695000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a biological signal processing device and a method for generating data for electrocardiogram analysis. [Background technology]
[0002] In recent years, AI technology has been rapidly put to practical use, and a method has been proposed for automatically analyzing electrocardiogram waveforms using machine learning and deep learning models by treating them as time-series data or images. The applicant also previously proposed a method for generating electrocardiogram analysis data that enables efficient deep learning of relationships between multiple types of waveform information and leads in an electrocardiogram (Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-130772 A Summary of the Invention [Problem to be solved by the invention]
[0004] In Patent Document 1, efficient deep learning is realized regarding waveform information and interrelationships between leads by generating a two-dimensional image in which images of multiple lead waveforms are arranged as data for electrocardiogram analysis. However, the data for electrocardiogram analysis proposed in Patent Document 1 does not include information on the time axis direction of the electrocardiogram, more specifically, information on the rhythm of the heartbeat. Therefore, it cannot be used for automatic analysis that requires information on the rhythm of the heartbeat, such as arrhythmia.
[0005] On the other hand, if you try to perform deep learning on electrocardiogram waveforms as time-series data rather than images, you need to build a model with a large number of layers to learn data of a certain length (for example, 10 seconds).This requires a lot of memory and the computational load is very large, making it unrealistic to implement in medical devices such as electrocardiographs.
[0006] The present invention has been made in consideration of the problems with the conventional technology, and aims to provide a biological signal processing device and a method for generating electrocardiogram analysis data that can efficiently detect arrhythmias by automatically analyzing electrocardiograms using deep learning. [Means for solving the problem]
[0007] The above-mentioned object can be achieved by a biological signal processing device that generates electrocardiogram analysis data to be used in electrocardiogram analysis using deep learning, the biological signal processing device having an acquisition means that acquires electrocardiogram data related to a plurality of leads, and a generation means that generates electrocardiogram analysis data based on the electrocardiogram data, wherein the generation means generates, as the electrocardiogram analysis data, data representing a two-dimensional image having a waveform image region that represents waveform information related to the plurality of leads, and a rhythm image region that represents rhythm information related to a predetermined lead out of the plurality of leads. Effect of the Invention
[0008] The electrocardiogram analysis data obtained by the biosignal processing device and the method for generating electrocardiogram analysis data according to the present invention can efficiently represent not only the characteristics of the electrocardiogram waveform but also the characteristics of rhythm changes over a given period of time. Therefore, it becomes possible to efficiently detect arrhythmias by automatic analysis of electrocardiograms using deep learning. [Brief description of the drawings]
[0009] [Figure 1] 1 is a block diagram showing an example of a functional configuration of a biological signal processing apparatus according to an embodiment; [Diagram 2] 4 is a flowchart illustrating an electrocardiogram analysis data generation process according to the embodiment. [Diagram 3] 4 is a flowchart illustrating an electrocardiogram analysis data generation process according to the embodiment. [Figure 4] 4 is a flowchart illustrating an electrocardiogram analysis data generation process according to the embodiment. [Diagram 5]FIG. 11 is a diagram showing a specific example of pre-processing according to the embodiment. [Figure 6] FIG. 4 is a diagram showing a specific example of electrocardiogram analysis data according to the embodiment. [Figure 7] FIG. 4 is a diagram showing a specific example of electrocardiogram analysis data according to the embodiment. [Figure 8] FIG. 13 is a diagram showing an example of an evaluation result of a learning model using electrocardiogram analysis data according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] The present invention will be described in detail below based on its exemplary embodiments with reference to the accompanying drawings. Note that the embodiments described below do not limit the present invention in any sense. In addition, not all of the configurations described in the embodiments are necessarily essential to the present invention. In addition, configurations included in different embodiments may be combined or replaced, except when clearly impossible or denied. In addition, in order to avoid redundant description, the same reference numbers are used throughout the accompanying drawings for the same or similar components.
[0011] 1 is a block diagram showing an example of a functional configuration of a biosignal processing device 100 according to this embodiment. The biosignal processing device 100 can be realized by, for example, a programmable processor executing an application program that realizes the operation described below. Therefore, the biosignal processing device can be implemented in a general electronic device having a programmable processor.
[0012] The biological signal processing device 100 generates data (electrocardiogram analysis data) suitable for deep learning of a neural network and automatic analysis using a trained neural network from electrocardiogram time series data (hereinafter referred to as electrocardiogram data) including multiple types of leads. In particular, the biological signal processing device 100 of this embodiment generates electrocardiogram analysis data that enables arrhythmia detection by automatic analysis using a neural network. The electrocardiogram analysis data generated by the biological signal processing device is used during neural network learning and automatic analysis using a trained neural network.
[0013] The control unit 110 has a programmable processor, ROM, and RAM, and realizes the processing of the biological signal processing device 100, including the processing of generating data for electrocardiogram analysis, which will be described later, by reading programs stored in the ROM or recording unit 130 into the RAM and executing them.
[0014] The external I / F 120 is an interface for the biological signal processing device 100 to communicate with an external device in a wired and / or wireless manner. The biological signal processing device 100 can output analysis results to an external device and obtain data such as electrocardiogram data to be analyzed from the external device through the external I / F 120. The external I / F 120 can have a configuration conforming to one or more standards related to communication between devices, such as USB, wireless LAN, wired LAN, and Bluetooth (registered trademark).
[0015] The recording unit 130 is a device for holding the electrocardiogram data to be analyzed, the analysis results of the electrocardiogram data, etc., and may be an internal storage device such as an SSD, an HDD, etc., and / or a removable storage device such as a USB memory, a memory card, etc. The control unit 110 records data in the recording unit 130 and reads out the data recorded in the recording unit 130.
[0016] The signal processing unit 140 applies predetermined processing to biosignals such as electrocardiogram data. The signal processing unit 140 can be composed of, for example, a programmable processor, a ROM that stores programs executable by the processor, and a RAM used to execute the programs. The programmable processor used by the signal processing unit 140 may be a general CPU, but a GPU, DSP, or the like may be used at least auxiliary to quickly execute signal processing and neural network-related processing (application of deep learning and trained neural networks).
[0017] The signal processing unit 140 executes deep learning processing of a neural network using electrocardiogram analysis data generated from electrocardiogram data for learning, and automatic analysis processing of applying electrocardiogram analysis data generated from electrocardiogram data to an analysis target neural network that has undergone deep learning. In this specification, deep learning refers to learning of a neural network having multiple layers.
[0018] The display unit 150 is a display device such as a liquid crystal display (LCD), and displays a user interface (GUI) of the biological signal processing device 100, biological information such as an electrocardiogram waveform, automatic analysis results of electrocardiogram data, etc. The display unit 150 may be an external display device.
[0019] The operation unit 160 is a general term for input devices such as a keyboard, a pointing device, a touch panel, a switch, and a button that allow a user to input instructions to the biological signal processing device 100. When the display unit 150 is a touch display, the software keys displayed on the display unit 150 constitute a part of the operation unit 160.
[0020] FIG. 2 is a flowchart of the electrocardiogram analysis data generation process executed by the biological signal processing device 100. In S210, the control unit 110 acquires electrocardiogram data relating to a plurality of types of leads (e.g., data of a 12-lead electrocardiogram) from, for example, the recording unit 130. Note that, here, it is assumed that electrocardiogram data that has been measured in advance and stored in the recording unit 130 is acquired, but when the biological signal processing device 100 is incorporated in an electrocardiograph, for example, the electrocardiogram data may be acquired in real time.
[0021] Although details will be described later, in this embodiment, data of a two-dimensional image having an image area (waveform image area) showing a waveform for each lead and an image area (rhythm image area) showing rhythm information for a predetermined lead is generated as data for electrocardiogram analysis. In S210, electrocardiogram data for generating a waveform image is acquired.
[0022] In order to generate a waveform image for one heartbeat for each lead, the control unit 110 acquires electrocardiogram data for one heartbeat in S210. Alternatively, the control unit 110 may divide the electrocardiogram data for a predetermined time into pieces for one heartbeat and generate electrocardiogram data for one heartbeat by averaging them. The control unit 110 may also extract electrocardiogram data for one heartbeat that is determined to be of the best quality from the electrocardiogram data for the predetermined time. The electrocardiogram data for each lead obtained in S210 is called representative electrocardiogram data. Note that the representative electrocardiogram data for each lead may be longer than one heartbeat.
[0023] The division points for dividing the electrocardiogram data into one heartbeat or one heartbeat into multiple sections are determined using one of multiple leads and can be used commonly for all leads. The lead used to determine the division points may be predetermined, or the lead with the largest maximum amplitude may be used. The electrocardiogram data can be divided into one heartbeat units using any known method.
[0024] In S220, the control unit 110 applies pre-processing to the electrocardiogram data for one heartbeat of each lead. The pre-processing is a process for reducing the amount of electrocardiogram data while retaining the waveform features. The details of the pre-processing will be described later. Although the pre-processing is not essential, performing it can reduce the computational load of deep learning and automatic analysis, and can also increase the efficiency of extracting the waveform features.
[0025] In S230, the control unit 110 generates a composite waveform image in which images (lead images) of the preprocessed electrocardiogram data of each lead are arranged two-dimensionally. The control unit 110 also acquires electrocardiogram data for a predetermined time period for one of the multiple leads, and extracts predetermined rhythm information. Then, it generates a rhythm image representing the extracted rhythm information. The rhythm information is the length of a specific section within one heartbeat of the electrocardiogram, the interval between adjacent heartbeats of feature points, etc. The extraction of the rhythm information and the rhythm image will be described in detail later.
[0026] Then, the control unit 110 generates data of a two-dimensional image in which the composite waveform image is arranged in the waveform image area and the rhythm image is arranged in the rhythm image area. The image data generation process in S230 will be described later in detail.
[0027] In S240, the control unit 110 applies post-processing to the electrocardiogram analysis data generated in S230 as necessary. The post-processing may be pixel compression processing using a known method such as the bicubic method. Note that, in cases where the processing capacity of the signal processing unit 140 is sufficiently high, the post-processing is not necessarily performed. Therefore, the data of the two-dimensional image generated in S230, or the data of the two-dimensional image to which the post-processing is applied in S240, becomes the electrocardiogram analysis data. The control unit 110 records the generated electrocardiogram analysis data in, for example, the recording unit 130. Note that at least a part of the above-mentioned processing may be performed by the signal processing unit 140 instead of the control unit 110.
[0028] When performing deep learning (or verification) of the neural network realized by the signal processing unit 140, the control unit 110 supplies electrocardiogram analysis data generated from electrocardiogram data for learning (or verification) (known electrocardiogram data) to the signal processing unit 140. In addition, when performing automatic analysis processing using the trained neural network realized by the signal processing unit 140, the control unit 110 supplies electrocardiogram analysis data generated from electrocardiogram data for analysis (unknown electrocardiogram data) to the signal processing unit 140.
[0029] Next, the pre-processing performed in S220 in Fig. 2 will be described in detail with reference to the flowchart shown in Fig. 3. The pre-processing is applied to the representative electrocardiogram data of each lead obtained in S210.
[0030] In S222, the control unit 110 applies nonlinear amplification processing to the electrocardiogram data. In the nonlinear amplification processing, a large gain is applied to a portion of the electrocardiogram data where the amplitude value (difference from the baseline level) is small, and a small gain is applied to a portion of the electrocardiogram data where the amplitude value is large. There are no particular limitations on the characteristics of the nonlinear amplification, but a logarithmic gain curve can be used. The nonlinear amplification can also be considered as a nonlinear compression of the dynamic range of the electrocardiogram data.
[0031] In S224, the control unit 110 normalizes the nonlinearly amplified electrocardiogram data. For example, the electrocardiogram data of each lead may be normalized using the maximum value of all leads, or each lead may be normalized using the maximum value of that lead. The electrocardiogram data of each lead has a value ranging from -1 to 1 as a result of normalization.
[0032] In S226, the control unit 110 applies downsampling to the normalized electrocardiogram data of each lead to reduce the number of data (samples) in the time axis direction. Downsampling is not essential, but has the effect of reducing the load of learning and analysis.
[0033] When downsampling is performed, it is preferable to suppress the reduction in the number of samples by setting a higher sampling rate in a section where the waveform changes greatly than in a section where the change is small, rather than keeping the sampling rate constant. For example, the control unit 110 divides the period of one heartbeat into a QRS section (e.g., a first section of a predetermined number of samples (time) before and after the peak of the R wave as a reference), a P section (e.g., a second section of a predetermined number of samples (time) before the QRS section), and another third section. Then, the sampling rate of downsampling can be made different so that the third section>the second section>the first section in descending order of the proportion of samples to be thinned out. Also, samples to be thinned out may be adjusted within a section, for example, so that adjacent samples with a large difference in value are not thinned out, rather than being thinned out at equal intervals. Note that, although the configuration is such that samples are simply thinned out here, subsampling involving interpolation may be performed.
[0034] In S228, the control unit 110 trims (deletes) data of an unimportant section of the electrocardiogram data as necessary. For example, the control unit 110 can delete data in a section from the end of the T wave to the start of the P wave during one heartbeat period. Although trimming is not essential, trimming can reduce the amount of data, which has the effect of reducing the computation load during learning and automatic analysis. Trimming may be performed before downsampling.
[0035] The subsampling rate and the number of samples to be trimmed in the preprocessing can be determined by the size of the waveform image area in the electrocardiogram analysis data and the size of the waveform image per lead, which is determined by the number of leads whose waveform images are included in the waveform image area. This allows the waveform images to be generated efficiently.
[0036] After such pre-processing has been performed, the image data generation process carried out in S230 will be described in detail with reference to the flowchart of FIG. In S232, the control unit 110 generates image data (lead image data) from the preprocessed representative electrocardiogram data for each lead. In this embodiment, rectangular lead image data having a predetermined common size (number of pixels in the horizontal and vertical directions) is generated from the electrocardiogram data of each lead.
[0037] There is no particular limit to how the values of each sample constituting the electrocardiogram data (i.e., information on the waveform of the lead) should be expressed as lead image data, and various methods are possible. Here, the horizontal direction of a rectangular area is the time axis, and the vertical direction is the amplitude axis, and the pixel values of the coordinates determined according to each sample value are made different from the pixel values of the background to generate lead image data in which the waveform is plotted in an orthogonal coordinate space.
[0038] For the sake of simplicity, it is assumed that the horizontal size of the induction image is equal to the number of samples of the electrocardiogram data. When the electrocardiogram data is normalized in the preprocessing, the vertical size of the induction image is assigned to a range of values from +1 to -1 to determine the vertical coordinates corresponding to each sample value. The horizontal coordinates may be incremented by 1 for each sample. The pixel value corresponding to the coordinates of each sample value determined in this manner is set to 1, and the pixel value corresponding to the other coordinates is set to 0, thereby generating induction image data in which the sample values are plotted in white on a black background. Note that the induction image data may be a multi-value image.
[0039] If the number of electrocardiogram data samples is smaller than the horizontal size (number of pixels) of the image to be generated, the horizontal size of the image may be reduced to match the number of samples, or the area where no samples are plotted may remain as background. When performing preprocessing, it is preferable to adjust the sampling rate of subsampling and the number of samples to be trimmed to match the number of electrocardiogram data samples to the horizontal size (number of pixels) of the image to be generated.
[0040] After generating lead image data of the same image size from the electrocardiogram data of each lead in the above manner, the control unit 110 generates data of a composite waveform image in which the lead images are arranged two-dimensionally in S234. The size of the composite waveform image is determined so that the automatic analysis data combined with the rhythm image becomes a square image. This is because many of the program libraries of neural networks that are generally available are premised on handling square images.
[0041] Next, in S236, the control unit 110 generates rhythm image data. The control unit 110 acquires electrocardiogram data of a predetermined lead for a predetermined period of time from the recording unit 130, and extracts rhythm information. The electrocardiogram data acquired here is electrocardiogram data relating to any one of the leads acquired for generating the lead image in S210. Electrocardiogram data relating to any lead may be acquired, but a lead having a dominant heartbeat may be selected from among the multiple leads, or a lead to be used may be set in advance.
[0042] For example, assume that 10 seconds of electrocardiogram data simultaneously measured for each lead is acquired in S210, and representative electrocardiogram data is generated. In this case, in S236, the control unit 110 acquires the same 10 seconds of electrocardiogram data for one lead as that acquired in S210, and extracts rhythm information.
[0043] The rhythm information is information about the timing of an electrocardiogram, such as the length of a specific section within one heartbeat and the interval between adjacent heartbeats of a feature point. In this embodiment, rhythm information useful for detecting arrhythmia is extracted. Examples of such rhythm information include, but are not limited to, an RR interval, a PR interval, the length of a QRS section, and the length of a QT section. The RR interval is the interval between R wave peaks in adjacent heartbeats. The PR interval is the interval between the peaks of a P wave and an R wave within one heartbeat. The length of a QRS section is the length from a Q wave to an S wave within one heartbeat. The length of a QT section is the length from a Q wave to a T wave peak within one heartbeat. Since a known method can be used for dividing electrocardiogram data into beats and detecting feature points, detailed explanations will be omitted.
[0044] The control unit 110 generates data of a rhythm image representing the extracted rhythm information. The size of the rhythm image is determined so that an image of a predetermined size will be obtained when combined with the waveform image. Specific examples of rhythm images will be described later. After generating the rhythm image data, the control unit 110 advances the process to S238.
[0045] In S238, the control unit 110 synthesizes the waveform image data generated in S234 and the rhythm image data generated in S236 to generate synthetic image data. The positions and distribution of the waveform image and rhythm image in the synthetic image can be freely adjusted. As described above, the synthetic image data generated in S238 may be used as is as data for electrocardiogram analysis, or may be used as data for electrocardiogram analysis after applying post-processing.
[0046] Figure 5 shows a specific example of preprocessing. Figure 5(a) shows the acquired electrocardiogram data for one heartbeat, with 500 samples. Figure 5(b) shows the result of applying nonlinear amplification to this electrocardiogram data and normalizing it by the maximum value of all leads. In this state, the number of samples does not change.
[0047] In downsampling, the data is divided into P wave, QRS, T wave, and other sections, and the sampling rates are set to DSR2, DSR3, DSR4, and DSR1, respectively. The ratio of samples thinned out by downsampling has the relationship DSR1>DSR4>=DSR2>DSR3. Here, the section with downsampling rate DSR1 is deleted by trimming, and DSR3 is set to 1 / 2, DSR2 to 1 / 6, and DSR4 to 1 / 6. Here, the downsampling rate of 1 / n indicates that the number of samples is reduced to 1 / n of the original by downsampling. Figure 5(c) shows the ECG data after subsampling and trimming. The number of samples is reduced from 500 to 84, but the waveform characteristics related to the leads are maintained.
[0048] Fig. 6(a) is a diagram showing an example of a two-dimensional image represented by electrocardiogram analysis data generated by the biological signal processing device 100. The two-dimensional image 400 has a waveform image area 401 and a rhythm image area 402. In the example shown in Fig. 6(a), the two-dimensional image 400 is square-shaped, but may be rectangular-shaped. However, a square shape is more applicable to a two-dimensional neural network.
[0049] First, the waveform image area 401 will be described further with reference to Fig. 7. Fig. 7 shows an example of a waveform image area in which waveform images generated for each lead are synthesized after applying the pre-processing shown in Fig. 5 to the representative electrocardiogram data of the standard 12 leads. Here, the size of the two-dimensional image 400 shown in Fig. 6(a) before post-processing is 360 x 360 pixels, the size of the waveform image area 401 is 252 pixels long x 360 pixels wide, and the size of the rhythm image area 402 is 108 pixels long x 360 pixels wide. The size of the waveform image of each lead in the waveform image area 401 is 63 pixels long x 120 pixels wide, which is obtained by dividing the 252 pixels long x 360 pixels wide into 3 horizontally and 4 vertically.
[0050] Fig. 6(b) is an enlarged view of the rhythm image region 402 in Fig. 6(a). Here, the rhythm image is shown in gray for ease of viewing. The rhythm image shown in Fig. 6 shows an example in which four items of rhythm information, the RR interval, the PR interval, the length of the QRS interval, and the length of the QT interval, are visualized from 10 seconds of electrocardiogram data.
[0051] Here, four pieces of rhythm information are visualized using three types of rectangular or linear image patterns 403 to 405. What is common to the image patterns 403 to 405 is that one side of the rhythm image (here, the side extending horizontally) is set as the time axis, and the position is determined along that side.
[0052] The rectangular image pattern 403 that is long in the vertical direction represents the length of the QRS interval by the length in the time axis direction, and the timing of the R wave by the position in the time axis direction. The reason why 10 image patterns 403 are arranged in the time axis direction is that the 10-second electrocardiogram data from which the rhythm information was extracted contained a QRS interval for 10 heartbeats. Therefore, the interval between adjacent image patterns 403 corresponds to the RR interval. The image patterns 403 may be arranged so that the distance between their centers in the time axis direction represents the RR interval, or so that the distance between one end in the time axis direction (the left end in the example of FIG. 6(b)) represents the RR interval. The vertical size of the image pattern 403 is not particularly significant, but since the lengths of the RR interval and the QRS interval are considered to be more important than the PR interval and the QT interval in detecting arrhythmia, the vertical size of the image pattern 403 is made larger than that of the image patterns 404 and 405.
[0053] The rectangular image pattern 404 that is long in the time axis direction represents the length of the QT interval by its length in the time axis direction. The start position of the image pattern 404 in the time axis direction is aligned with that of the image pattern 403 relating to the same heartbeat. This is because the start positions of the image pattern 403 and the image pattern 404 correspond to the start timing of the same Q wave. The vertical size of the image pattern 404 is fixed and does not represent any particular meaning.
[0054] A linear or rectangular image pattern 405 that is long in the vertical direction and has a fixed length along the time axis represents the timing of the P wave according to its position along the time axis. The position of the image pattern 405 along the time axis is determined so that the interval along the time axis between the image pattern 405 and the image pattern 403 relating to the same heartbeat represents the PR interval. The vertical size of the image pattern 405 is fixed and does not represent any particular meaning.
[0055] In this example, the image pattern 405 representing the timing of the P wave and the image pattern 404 representing the length of the QT interval are arranged adjacent to each other in the time axis direction, so that they are not mistaken for the same image pattern, one image pattern is made long in the vertical direction and the other image pattern is made long in the horizontal direction. However, other methods may be used to suppress the misidentification of the image patterns. For example, as shown in FIG. 6(c), the image patterns 404 and 405 may be arranged spaced apart in the vertical direction, like the image patterns 403 and 404.
[0056] The method of visualizing rhythm information is not limited to the method described with reference to Fig. 6. If rhythm information (numerical values) for multiple heartbeats can be expressed as different images depending on the notification, a rhythm image can be generated by another method.
[0057] As described above, according to this embodiment, in addition to waveform images related to multiple leads, one two-dimensional image that combines rhythm images that visualize rhythm information related to an electrocardiogram for a predetermined time is generated as electrocardiogram analysis data. By using the electrocardiogram analysis data generated by this embodiment, it becomes possible to efficiently detect arrhythmia based on the lead waveforms and rhythm information by automatic analysis using deep learning.
[0058] An example in which the electrocardiogram analysis data according to this embodiment is applied to a two-dimensional convolutional neural network (2D CNN) will be described below. The parameters for the 2D CNN used in the evaluation are as follows: Number of layers: 10~16 layers Kernel size: 3×3 Activation function: ReLU Batch size: 64 Number of Epochs: 20~60 Dropout rate: 0.5
[0059] 8 shows the results of generating automatic analysis data by using the method of the above-mentioned embodiment, in which 767 sets of sinus rhythm and arrhythmia electrocardiogram data were prepared as 12-lead electrocardiogram data, and 230 sets of electrocardiogram analysis data were verified after learning was performed using 537 sets of automatic analysis data.
[0060] The data for electrocardiogram analysis was created by creating a 2D image of 360 x 360 pixels, and then reducing it to 120 x 120 pixels and 90 x 90 pixels through post-processing. In Figure 8, the learning model was evaluated using precision, recall, and F1 score. The F1 score is 2 x precision x recall / (precision + recall).
[0061] The evaluation results shown in Fig. 8 show that the electrocardiogram data of arrhythmia can be detected with high accuracy even though the learning model is not yet fully optimized (loss = 0.1 to 0.2). In addition, even if the size of the electrocardiogram analysis data is reduced, no degradation in performance is observed, and discrimination is possible at a speed that is sufficiently practical even in an execution environment with low computing power and memory capacity. In an implementation on a general personal computer, when electrocardiogram analysis data of 90 x 90 pixels is used, the model size is 4.5 MB, and the time required to discriminate 230 pieces of electrocardiogram analysis data is about 0.13 seconds. Therefore, the discrimination time for one finding of electrocardiogram analysis data is about 0.57 milliseconds, and even considering the time required to generate electrocardiogram analysis data, real-time or near-real-time processing is possible.
[0062] As described above, according to this embodiment, two-dimensional image data including waveform images for multiple leads and rhythm images based on rhythm information for a specific lead are generated as electrocardiogram analysis data using deep learning. This makes it possible to accurately and quickly detect arrhythmias that cannot be identified from waveform information by automatic analysis using a deep learning model.
[0063] The present invention is not limited to the above-mentioned embodiment, and various modifications and alterations are possible within the scope of the gist of the invention. For example, in the above-mentioned embodiment, the case where 12-lead electrocardiogram data is used has been described, but the present invention is applicable to electrocardiogram data relating to any number of leads. For example, a waveform image may be generated from electrocardiogram data relating to three types of leads, namely, lead II, lead V5, and lead V2. It is also possible to generate a composite image by arranging a waveform image of a single lead or a small number of leads, such as a Holter or monitor electrocardiogram, and multiple rhythm images divided into long recording times.
[0064] The biosignal processing device according to the present invention can also be realized by executing a program (application software) that executes the operations of the flowcharts shown in Figures 2 to 4 on a commonly available electronic device capable of executing a program, such as a personal computer, a smartphone, or a tablet terminal. Therefore, such a program and a storage medium (optical storage medium such as a CD-ROM or DVD-ROM, magnetic storage medium such as a magnetic disk, semiconductor memory card, etc.) that stores the program also constitute the present invention. [Explanation of symbols]
[0065] 100: biosignal processing device, 110: control unit, 140: signal processing unit
Claims
1. A biological signal processing device that generates electrocardiogram analysis data used in electrocardiogram analysis using deep learning, An acquisition means for acquiring electrocardiogram data relating to a plurality of leads; generating means for generating the electrocardiogram analysis data based on the electrocardiogram data; the generating means generates, as the electrocardiogram analysis data, data representing a two-dimensional image having a waveform image region representing waveform information relating to a plurality of leads and a rhythm image region representing rhythm information relating to a predetermined lead among the plurality of leads.
2. The biological signal processing device according to claim 1, characterized in that the generating means generates, as the electrocardiogram analysis data, data representing a two-dimensional image in which one side of the two-dimensional image is a time axis and an image pattern having a position and length in the direction of the time axis determined according to the rhythm information is arranged in the rhythm image area.
3. the rhythm information includes a time interval of a predetermined characteristic point in an electrocardiogram of one heartbeat; 3. The biological signal processing device according to claim 1, wherein the generating means generates, as the electrocardiogram analysis data, data representing a two-dimensional image in which an image pattern showing the feature points is arranged in the rhythm image area at intervals corresponding to the time intervals.
4. The biological signal processing device according to claim 3 , wherein the characteristic point is at least one of a peak of a P wave and a peak of an R wave.
5. the rhythm information includes a length of a predetermined section in an electrocardiogram within one heartbeat; 5. The biological signal processing device according to claim 1, wherein the generating means generates, as the electrocardiogram analysis data, data representing a two-dimensional image in which an image pattern having a length corresponding to the length is arranged in the rhythm image area.
6. The biological signal processing device according to claim 5 , wherein the predetermined interval is at least one of a QRS interval and a QT interval.
7. 7. The biological signal processing device according to claim 1, wherein the generating means generates, as the electrocardiogram analysis data, data representing a two-dimensional image in which image patterns having lengths corresponding to lengths of QRS intervals in each heartbeat included in the electrocardiogram data relating to the predetermined lead are arranged in the rhythm image region at intervals corresponding to the R-R interval between adjacent heartbeats.
8. The biological signal processing device according to claim 7, characterized in that the generating means generates, as the electrocardiogram analysis data, data representing a two-dimensional image in which an image pattern indicating the timing of a P wave is arranged at an interval corresponding to a P-R interval from a position indicating the timing of an R wave in an image pattern having a length corresponding to a length of the QRS interval in the rhythm image region.
9. 9. The biological signal processing device according to claim 7, wherein the generating means generates, as the electrocardiogram analysis data, data representing a two-dimensional image in which an image pattern having a length corresponding to a QT interval is arranged in the rhythm image region so as to represent the timing of a Q wave at the same position as an image pattern having a length corresponding to a length of the QRS interval and so as not to overlap with an image pattern having a length corresponding to a length of the QRS interval.
10. 10. The biological signal processing device according to claim 1, wherein the generating means generates, as the electrocardiogram analysis data, data representing a two-dimensional image in which an image showing values of the electrocardiogram data as a waveform is arranged in the waveform image area for each of the plurality of leads.
11. 11. The biological signal processing apparatus according to claim 10, wherein the generating means generates an image in which the values of the electrocardiogram data are represented as a waveform based on values obtained by nonlinearly compressing the values of the electrocardiogram data.
12. The biological signal processing device according to claim 11, wherein the generating means normalizes the nonlinearly compressed value for each lead and then generates an image in which the value of the electrocardiogram data is represented as a waveform.
13. The biological signal processing device according to claim 12 , wherein the generating means applies downsampling to the electrocardiogram data having the normalized values and then generates an image in which the values of the electrocardiogram data are represented as a waveform.
14. The biological signal processing device according to claim 13, wherein the downsampling has a sampling rate according to a section obtained by dividing one cardiac period of an electrocardiogram.
15. 15. The biological signal processing apparatus according to claim 10, wherein the generating means reduces the number of pixels by post-processing the two-dimensional image to generate the electrocardiogram analysis data.
16. A method for generating electrocardiogram analysis data for use in electrocardiogram analysis using deep learning, comprising: acquiring electrocardiogram data relating to a plurality of leads; generating the electrocardiogram analysis data based on the electrocardiogram data; A method for generating data for electrocardiogram analysis, characterized in that in the generating step, data representing a two-dimensional image having a waveform image region showing waveform information related to a plurality of leads and a rhythm image region showing rhythm information related to a predetermined lead among the plurality of leads is generated as the data for electrocardiogram analysis.
17. A program for causing a computer to function as each of the means included in the biological signal processing device according to any one of claims 1 to 15.
18. Electrocardiogram analysis data used for electrocardiogram analysis using deep learning, Electrocardiogram analysis data, characterized in that the data represents a two-dimensional image having a waveform image region representing waveform information relating to a plurality of leads, and a rhythm image region representing rhythm information relating to a specified lead among the plurality of leads.
19. 20. The electrocardiogram analysis data according to claim 18, further comprising a two-dimensional image expressing values of time-series data as waveforms for each of the plurality of leads.
20. 20. A neural network learning method, comprising using the electrocardiogram analysis data according to claim 18 or 19.
21. 20. An electrocardiogram analyzer for automatically analyzing an electrocardiogram by using a neural network trained using the electrocardiogram analysis data according to claim 18 or 19.
Citation Information
Patent Citations
Electrocardiogram waveform recognizing system
JP1993207985A
Electrocardiogram analysis system and computer readable recording medium having program therefor recorded thereon
JP2001218747A
Biological signal processing device and method for generating data for electrocardiogram analysis
JP7523302B2
Method of detecting abnormalities in ECG signals
US20190059763A1
Biological signal processing device and data generation method for automatic analysis
JP2020130772A
