Electrocardiogram signal processing method, device, computer equipment and storage medium

By segmenting the ECG signal and applying the target signal detection model, the problem of inaccurate R-wave detection of the central electrical signal in magnetic resonance imaging is solved, the detection accuracy and efficiency are improved, and it is suitable for strong magnetic field scenes.

CN115770048BActive Publication Date: 2024-09-24SHANGHAI UNITED IMAGING HEALTHCARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111051663.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-08
Publication Date
2024-09-24
Estimated Expiration
2041-09-08

AI Technical Summary

Technical Problem

During the magnetic resonance imaging process, due to the influence of the static main magnetic field, the ECG signal is easily deformed, resulting in inaccurate detection results of the R wave of the ECG signal. The traditional filtering method has low accuracy when detecting the R wave under high fields.

Method used

By segmenting the ECG signal, multiple detection band signals are generated, and the target signal detection model is used for band signal detection to improve the accuracy of R wave detection. The method includes training a target detection model based on multiple band signals and band signal types of sample ECG signals, reducing the amount of detection calculations, shortening the detection cycle, and reducing complexity.

Benefits of technology

It improves the accuracy of ECG signal R-wave detection, reduces detection errors, is suitable for strong magnetic field scenarios, and avoids the problem of ECG signal distortion caused by magnetohydrodynamic effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115770048B
    Figure CN115770048B
Patent Text Reader

Abstract

The present application relates to an electrocardiogram signal processing method, device, computer equipment and storage medium. The method comprises: segmenting an electrocardiogram signal to be detected to obtain one or more detection band signals, inputting the detection band signals into a target signal detection model to perform band signal detection, and determining a target band signal. The method can first segment the electrocardiogram signal to reduce the amount of calculation of the detection method, shorten the detection cycle, and reduce the complexity of the detection method, and then perform band signal detection on the segmented detection band signals through a neural network model, thereby improving the accuracy of the R wave detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electrocardiogram signal detection, and in particular to an electrocardiogram signal processing method, device, computer equipment and storage medium. Background Art

[0002] During magnetic resonance imaging, ECG gating is often required to synchronize the scanning sequence with the patient's cardiac cycle, in order to reduce motion artifacts caused by cardiac motion and the pulsation of arterial blood or cerebrospinal fluid caused by cardiac motion. The ECG signals generated by a cardiac cycle include P wave, QRS complex wave, T wave and U wave. Typical ECG signals can be divided into: PR segment, PR interval, QRS interval, ST segment and QT interval. ECG gating mainly determines the cardiac cycle by detecting the R wave in the ECG signal. Therefore, accurate detection of the R wave of the ECG signal can ensure that consistent K-space data is obtained in the acquisition of multiple cardiac cycles, and finally obtain images without motion artifacts / with suppressed motion artifacts.

[0003] Due to the influence of time-varying radio frequency pulses, constantly switching gradient magnetic fields and static main magnetic fields in the MRI scanning environment, it is difficult to obtain undistorted ECG signals during scanning. The magnetohydrodynamic effect caused by the static main magnetic field during MRI scanning will largely cause the ECG signal to be deformed, further making the detection result of the ECG signal R wave inaccurate.

[0004] In traditional technology, adaptive filtering, Kalman filtering, wavelet transform filtering and other methods are usually used to filter the ECG signal first, and then detect the R wave in the filtered ECG signal. However, for ECG signals generated under high fields, the use of traditional detection methods when detecting R waves will result in low accuracy of the detection results. Summary of the invention

[0005] Based on this, it is necessary to provide an electrocardiogram signal processing method, device, computer equipment and storage medium to address the above technical problems.

[0006] A method for processing an electrocardiogram signal, the method comprising:

[0007] Segment the electrocardiogram signal to be detected to obtain one or more detection band signals;

[0008] The detected band signal is input into a target signal detection model for band signal detection to determine a target band signal. The target signal detection model is trained based on multiple band signals of a sample ECG signal and a band signal type of each band signal. The band signal type indicates whether the band signal is a target band signal.

[0009] In one embodiment, the segmentation process of the electrocardiogram signal to be detected to obtain one or more detection band signals includes:

[0010] The electrocardiogram signal to be detected is segmented and processed according to a preset segmentation window width to obtain a plurality of detection band signals, wherein the preset segmentation window width is obtained according to a sampling frequency of the sample electrocardiogram signal.

[0011] In one embodiment, the method further comprises:

[0012] Obtain sample ECG signals in various scenarios;

[0013] Segmenting the sample ECG signals in the multiple scenarios to obtain target detection band signals and non-target detection band signals in the sample ECG signals;

[0014] The initial signal detection model is trained by using the target detection band signal and the non-target detection band signal to obtain the target signal detection model.

[0015] In one embodiment, the segmentation processing of the sample ECG signals in the multiple scenarios to obtain the target detection band signal and the non-target detection band signal in the sample ECG signals includes:

[0016] According to the preset segmentation window width, the sample ECG signals in the multiple scenarios are segmented to obtain multiple sample signals to be detected;

[0017] The signal type in each of the sample signals to be detected is detected to determine the target detection band signal and the non-target detection band signal.

[0018] In one embodiment, the sample ECG signal is sensitive to a magnetic field, and the method further comprises:

[0019] Acquiring a reference signal, wherein the reference signal is insensitive to a magnetic field;

[0020] The signal type of each of the sample signals to be detected is determined according to the reference signal.

[0021] In one embodiment, the reference signal includes at least one of a heart sound signal, a pulse signal or an ultrasound image signal.

[0022] In one embodiment, the detecting the signal type in each of the sample signals to be detected to determine the target detection band signal and the non-target detection band signal includes:

[0023] If the sample signal to be detected includes an R-band signal, marking the sample signal to be detected as the target detection band signal;

[0024] If the sample signal to be detected does not include the R-band signal, the sample signal to be detected is marked as the non-target detection band signal.

[0025] An electrocardiogram signal processing device, comprising:

[0026] A segmentation processing module, used for segmenting the electrocardiogram signal to be detected to obtain one or more detection band signals;

[0027] The band signal detection module is used to input the detected band signal into the target signal detection model for band signal detection to determine the target band signal. The target signal detection model is trained based on multiple band signals of the sample ECG signal and the band signal type of each band signal. The band signal type indicates whether the band signal is a target band signal.

[0028] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0029] Segment the electrocardiogram signal to be detected to obtain one or more detection band signals;

[0030] The detected band signal is input into a target signal detection model for band signal detection to determine a target band signal. The target signal detection model is trained based on multiple band signals of a sample ECG signal and a band signal type of each band signal. The band signal type indicates whether the band signal is a target band signal.

[0031] A storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0032] Segment the electrocardiogram signal to be detected to obtain one or more detection band signals;

[0033] The detected band signal is input into a target signal detection model for band signal detection to determine a target band signal. The target signal detection model is trained based on multiple band signals of a sample ECG signal and a band signal type of each band signal. The band signal type indicates whether the band signal is a target band signal.

[0034] The above-mentioned ECG signal processing method, device, computer equipment and storage medium segment the ECG signal to be detected to obtain multiple detection band signals, and input the multiple detection band signals into the target signal detection model to perform band signal detection to determine the target band signal; this method can first segment the ECG signal to reduce the amount of calculation of the detection method, shorten the detection cycle, and reduce the complexity of the detection method, and then use the neural network model to perform band signal detection on the segmented detection band signals, thereby improving the accuracy of the R wave detection results. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of a flow chart of an electrocardiogram signal processing method in one embodiment;

[0036] Figure 2 A schematic diagram of a process of segmenting an ECG signal in another embodiment;

[0037] Figure 3 A schematic diagram of a method flow chart for training a target signal detection model in one embodiment;

[0038] Figure 4 It is a flowchart of a method for segmenting a sample ECG signal in another embodiment;

[0039] Figure 5 It is a flowchart of a method for segmenting a sample ECG signal in another embodiment;

[0040] Figure 6 A waveform diagram of an electrocardiogram signal collected in a strong magnetic field scenario in another embodiment;

[0041] Figure 7 A flow chart of a method for training an initial signal detection model in another embodiment;

[0042] Figure 8 is a structural block diagram of an electrocardiogram signal processing device in an embodiment;

[0043] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] The ECG signal processing method provided in the present application can be applied to a magnetic resonance system. Among them, the magnetic resonance computer communicates with the magnetic resonance imaging device through a network, and the magnetic resonance imaging device can be connected to or provided with an ECG monitor. After the ECG monitor collects the ECG signal, the ECG signal is sent to the magnetic resonance computer, and the magnetic resonance computer detects the R wave in the ECG signal, which can also be called the R band signal; the method can process the ECG signal collected in a strong magnetic field scene, and avoid the problem that the ECG signal collected is seriously distorted due to the enhancement of the magnetohydrodynamic effect in the strong magnetic field magnetic resonance imaging, resulting in the inaccurate R wave in the detected ECG signal. In this embodiment, the magnetic resonance computer can be implemented with an independent server or a server cluster composed of multiple servers, and can also be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices.

[0046] In one embodiment, Figure 1 As shown, a method for processing an electrocardiogram signal is provided. Figure 1 The magnetic resonance computer in the embodiment is used as an example to illustrate, and the method includes the following steps:

[0047] S100 , segmenting the electrocardiogram signal to be detected to obtain one or more detection band signals.

[0048] Specifically, the magnetic resonance computer can be connected to an external ECG monitor, through which the ECG monitor can be used to obtain the ECG signal corresponding to the patient in the main magnetic field environment generated by the magnetic resonance imaging device, and the ECG signal can be used as the ECG signal to be detected. The acquisition of ECG signals is sensitive to the magnetic field, or the main magnetic field of the magnetic resonance imaging device can affect the ECG signal, causing the ECG signal to cause a certain deformation. Exemplarily, the ECG monitor may include a three-lead ECG wire, and the corresponding ECG signal to be detected is the I, II, and III lead ECG signal; or, the ECG monitor may include a five-lead ECG wire, and the corresponding ECG signal to be detected is the I, II, III, AVR, AVF, AVL, and V lead ECG signal. It should be understood that the acquisition of the ECG signal to be detected is not limited to the ECG monitor, and the method for acquiring the ECG signal in the embodiment of the present application is not limited. For example, the ECG signal to be detected can also be obtained by using a sensor.

[0049] Furthermore, the magnetic resonance computer can segment and process the ECG signal to be detected according to a preset arbitrary length band to obtain multiple detection band signals, and can also segment and process the ECG signal to be detected according to the band type to obtain multiple detection band signals. Of course, the ECG signal to be detected can also be segmented and processed according to the signal strength to obtain multiple detection band signals, and there is no limitation on the segmentation basis. In this embodiment, the acquisition time of the ECG signal to be detected can be greater than one cardiac cycle.

[0050] The electrocardiogram to be detected can be displayed in the form of an electrocardiogram, and the patient's heartbeat cycle (i.e., cardiac cycle) and heartbeat state can be obtained through the electrocardiogram to be detected. The electrocardiogram to be detected can include P waves, QRS complex wave groups, T waves, PR waves and / or ST waves; this embodiment can detect the R wave in the QRS complex wave group, and the R wave can be the peak segment of the QRS wave group, indicating the potential change caused by ventricular muscle depolarization, which is the highest and fastest waveform in the electrocardiogram. The cardiac cycle is usually marked by detecting the R wave.

[0051] It can also be understood that the lengths of the detection band signals obtained after segmentation may be equal or unequal, and the types of the detection band signals obtained after segmentation may be the same or different.

[0052] In addition, in order to reduce the interference of background signals in the acquisition scene, the magnetic resonance computer can first normalize the ECG signal corresponding to the patient acquired by the magnetic resonance imaging device to obtain the ECG signal to be detected. The background signal can be the main magnetic field, noise, etc. in the acquisition scene. If the ECG signal acquired by the magnetic resonance imaging device is directly used as the ECG signal to be detected, the magnetic resonance computer can normalize the ECG signal to be detected to obtain the normalized ECG signal to be detected, and further segment the normalized ECG signal to be detected to obtain multiple detection band signals.

[0053] S200, inputting the detected band signal into a target signal detection model to perform band signal detection and determine the target band signal. The target signal detection model is trained based on multiple band signals of the sample ECG signal and the band signal type of each band signal. The band signal type indicates whether the band signal is a target band signal.

[0054] It is understandable that the magnetic resonance computer can input the acquired multiple detection band signals into the target signal detection model for band signal detection, thereby outputting the target band signal through the target signal detection model. The target band signal can be all the detection band signals input into the target signal detection model, or can be part of the detection band signals input into the target signal detection model.

[0055] The sample ECG signals are collected from multiple scenes, and the above multiple scenes can be scenes without magnetic field and scenes with strong magnetic field; scenes without magnetic field can be scenes without strong magnetic field without entering the magnetic resonance scanning room, and scenes with strong magnetic field can include scenes without entering the magnetic resonance scanning room, scenes without scanning in the magnetic resonance scanning room, and / or scenes with breath holding and non-breath holding scanning in the magnetic resonance scanning room, etc. The specific magnetic field strength can be 1.5T, 3T, 5T or higher, to ensure the comprehensiveness of the training data and the generalization ability of the trained model. In this embodiment, the R wave is the peak segment signal in the ECG signal, and the target band signal can be the ECG signal phase containing the R wave. The above multiple scenes can also include a scanning sequence stimulated by the acquisition of ECG signals during magnetic resonance scanning, including radio frequency pulse parameters, gradient pulse parameters, etc. contained in the scanning sequence, to ensure that the training data set contains scenes under different radio frequency pulses and gradient magnetic fields as much as possible, and to improve the practicality of the trained model.

[0056] Among them, the band signal of the sample ECG signal can be a target sample band signal or a non-target sample band signal. In this embodiment, a neural network model can be trained through the band signals of the sample ECG signals in various scenarios and the band signal types of each band signal to obtain a target signal detection model. The band signal of the sample ECG signal can be a band signal obtained after segmenting the sample ECG signal. The neural network model can be a convolutional neural network model, a multi-layer perceptron, a residual shrinkage network model, etc., which is not limited to this.

[0057] In this embodiment, the magnetic resonance imaging device can collect a series of ECG signals, and the ECG signal to be detected is only a part of the ECG signals. According to the computing performance and signal delay of the magnetic resonance computer, the interval sampling point of the next band signal detection can be adjusted. For example, after each band signal detection, the band signal detection can be performed again with an interval of three sampling points. The interval sampling point can be adjusted according to the application scenario requirements and model training. If the detected band signal is obtained as the target band signal, it can be regarded as an effective ECG trigger, and the band signal detection is performed again after a delay to prevent the continuous bands containing R waves from being regarded as triggers, so as to achieve the purpose of accurate triggering once in one cardiac cycle. This embodiment can collect ECG signals of a shorter time in a variety of scenarios, and a large number of comprehensive training signals can be obtained.

[0058] In the above-mentioned ECG signal processing method, the magnetic resonance computer can segment and process the ECG signal to be detected to obtain multiple detection band signals, and input the multiple detection band signals into the target signal detection model to perform band signal detection to determine the target band signal. This method can first segment the ECG signal to reduce the amount of calculation of the detection method, shorten the detection cycle, and reduce the complexity of the detection method, and then use the neural network model to perform band signal detection on the segmented detection band signals, thereby improving the accuracy of the R wave detection results.

[0059] As one of the embodiments, the step of segmenting the ECG signal to be detected in the above S100 to obtain multiple detection band signals may include: segmenting the ECG signal to be detected according to a preset segmentation window width to obtain multiple detection band signals, and the preset segmentation window width is obtained according to the sampling frequency of the sample ECG signal.

[0060] Specifically, the basis for the segmentation process is a preset segmentation window width, which can be a segmentation window width for segmenting the sample ECG signal into band signals when training the target signal detection model. The segmentation window width can be obtained by the sampling frequency of the sample ECG signal. Specifically, the preset segmentation window width can be calculated by the time of the QRS wave group signal in the sample ECG signal, the proportion of the QRS wave group covering the ventricular depolarization band (i.e., R wave), and the sampling frequency of the sample ECG signal. For example, if the time of the QRS wave group is 0.06 to 0.08 s, and 80% of the QRS wave group is selected to cover the R wave, and the sampling frequency of the sample ECG signal is 250 Hz, then the preset segmentation window width can be at least equal to 0.08*80%*250=16 sampling points. In addition, for ECG signals with a fixed sampling frequency, the preset segmentation window width can also be adjusted arbitrarily according to actual needs.

[0061] It is understandable that the magnetic resonance computer can determine the data window according to the preset segmentation window width, and segment the ECG signal to be detected into multiple detection band signals by moving the data window. In this embodiment, the preset segmentation window width when segmenting the ECG signal to be detected can be equal to the segmentation window width of the sample ECG signal when training the target signal detection model. Figure 2 As shown, when segmenting the ECG signal to be detected, the segmentation can be carried out from the starting time of the ECG signal to be detected. The first solid-line frame on the far left in the figure is the first data window, which contains the R wave. The segmentation of the ECG signal to be detected is continued by moving backward through the first data window, that is, the starting time of the data window can be the end time of the data window at the previous position. As shown in the figure, the two dotted data windows are adjacent, and the end time of the previous data window intersects with the starting time of the next data window. However, in order to facilitate observation of the moving position of the data window in the figure, there is a small gap between the two data windows. The number of band signals contained in each data window in the figure can be the number of sampling points corresponding to the preset segmentation window width.

[0062] In other embodiments, there may be partial overlap between adjacent data windows. Exemplarily, the segmented data window needs to partially or completely cover the ventricular depolarization band (i.e., the QRS band of the conventional ECG electrocardiogram, which is the target band for R wave detection). Usually, the time of the QRS complex group is 0.06-0.08s. If 80% of the QRS band coverage is selected, at a sampling rate of 250Hz, the segmentation window width is at least 0.08*80%*250=16 sampling points. In the embodiment of the present application, the data window can be kept unchanged (16 sampling points) when the ECG signal is segmented. The data window is moved in the continuous ECG signal data (the moving step is 3 sampling points) to obtain the segmented band, and the segmented band containing the R wave peak segment is marked as the target detection band, and the other segmented bands are marked as non-target detection bands. Through this mobile segmentation method, only a short period of ECG signal data is collected for each scene to obtain a large amount of comprehensive training data, which is conducive to improving the accuracy of ECG signal monitoring.

[0063] In the above-mentioned ECG signal processing method, the ECG signal to be detected can be segmented and processed according to a preset segmentation window width, so that the segmented bands are consistent with the segmented bands when training the target signal detection model, thereby improving the accuracy of the detection result. At the same time, the ECG signal to be detected is segmented into multiple detection band signals, and then the detection band signals are subjected to band signal detection, which can reduce the amount of calculation of the detection method, shorten the detection cycle, and reduce the complexity of the detection method.

[0064] As one of the embodiments, Figure 3 As shown, the above method may further include the following steps:

[0065] S300. Obtain sample ECG signals in various scenarios.

[0066] Specifically, in order to ensure the comprehensiveness of the sample signals used in training the target signal detection model and the generalization ability of the target signal detection model obtained after training, the magnetic resonance computer can obtain sample ECG signals corresponding to patients in various scenarios collected by the magnetic resonance imaging equipment.

[0067] Among them, when the magnetic resonance imaging device collects sample ECG signals, it can collect sample ECG signals under different imaging sequences to ensure that the trained sample signals include scenes under different radio frequency pulses and gradient magnetic fields as much as possible, so as to improve the practicality of the target signal detection model.

[0068] Optionally, the various scenarios may include detecting that the patient has not entered the MR scanning room's environment without a strong magnetic field, detecting that the patient has entered the MR scanning room but has not entered the magnet environment, detecting that the patient has entered the MR scanning room's magnet but has not been scanned, detecting that the patient has entered the MR scanning room's magnet for a breath-hold scan, detecting that the patient has entered the MR scanning room's magnet for a free-breathing scan, etc.

[0069] S400 , performing segmentation processing on sample ECG signals in various scenarios to obtain target detection band signals and non-target detection band signals in the sample ECG signals.

[0070] In order to improve the generalization ability of the target signal detection model, before the target signal detection model is trained, the magnetic resonance computer can segment and process the sample ECG signals in a variety of scenarios, and the multiple scenarios may include non-magnetic field scenarios and strong magnetic field scenarios.

[0071] Among them, Figure 4 As shown, the step of segmenting the sample ECG signals in various scenarios in the above S400 to obtain the target detection band signal and the non-target detection band signal in the sample ECG signals can be implemented by the following steps:

[0072] S410 . Segment the sample ECG signals in various scenarios according to a preset segmentation window width to obtain a plurality of sample signals to be detected.

[0073] It is understandable that the magnetic resonance computer can segment and process the sample ECG signals in a variety of different strong magnetic field scenes and / or no magnetic field scenes according to the preset segmentation window width to obtain multiple sample signals to be detected. The sample signals to be detected can be target detection band signals or non-target detection band signals. The target detection band signal can be a band signal containing R waves in the sample ECG signal, and the non-target detection band signal can be a band signal that does not contain R waves in the sample ECG signal. Figure 2 In the figure, the two bands corresponding to the solid line frame are both target detection band signals, and the bands corresponding to the dotted line frame are both non-target detection band signals. In this embodiment, the segmented sample ECG signal may be a normalized ECG signal.

[0074] In some scenarios, if the sample ECG signals include sample ECG signals collected in a strong magnetic field scenario and sample ECG signals collected in a non-magnetic field scenario, in order to improve the accuracy of the target detection band signal and the non-target detection band signal marking, and prevent the sample ECG signals collected in the strong magnetic field scenario from being incorrectly marked in the bands with severe distortion, thereby affecting the model training results, a reference signal that is not affected by the magnetic field and can obtain the heartbeat cycle can be collected at the same time when the sample ECG signals are collected. The reference signal and the sample ECG signal are further time-aligned to determine the signal type of the segmented band. Therefore, when the sample ECG signal is a signal that is sensitive to the magnetic field, such as Figure 5 As shown, the above method may also include:

[0075] S411. Acquire a reference signal, where the reference signal is insensitive to a magnetic field.

[0076] Specifically, the reference signal may be a heart sound signal including a heartbeat cycle, a pulse signal, an ultrasonic image signal of the heart, an apex beat signal or a carotid artery beat signal, etc., or a combination of these signals. The time period of the reference signal collected in this embodiment may be the same as the time period of the sample ECG signal. The sample ECG signal may be a deformed and distorted ECG signal collected in a strong magnetic field scenario.

[0077] The reference signal includes at least one of a heart sound signal, a pulse signal or a cardiac ultrasound image signal.

[0078] In this embodiment, the reference signal may be at least one of a heart sound signal, a pulse signal or a cardiac ultrasound image signal. Exemplarily, the cardiac ultrasound image signal can reflect the morphological signal of the heart at different phases, and the phase of the heart can be determined by the morphological signal of the heart at different phases.

[0079] S412: Determine the signal type in each to-be-detected sample signal according to the reference signal.

[0080] Specifically, the computer device can perform segmentation processing on the reference signal according to a preset segmentation window width to obtain multiple reference signals to be detected, and then determine whether the signal type of each reference signal to be detected in the reference signal is a target detection band signal or a non-target detection band signal. Further, the computer device can perform time alignment between each reference signal to be detected in the reference signal and each sample signal to be detected in the sample electrocardiogram signal to determine the signal type of the corresponding sample signal to be detected according to the signal type of each reference signal to be detected. The band length corresponding to each reference signal to be detected after segmentation can be the same as the band length of the corresponding sample signal to be detected. If the reference signal to be detected contains an R wave, the signal type of the corresponding sample signal to be detected can be determined as a target detection band signal. If the reference signal to be detected does not contain an R wave, the signal type of the corresponding sample signal to be detected can be determined as a non-target detection band signal.

[0081] Among them, the reference signal collected is as follows Figure 6 As shown in the figure, the distorted sample ECG signal collected in a strong magnetic field can be referred to Figure 2 As shown, the solid line frame in the figure is the target detection band signal obtained after segmentation processing, and the dotted line frame is the non-target detection band signal obtained after segmentation processing.

[0082] In the above-mentioned ECG signal processing method, the sample ECG signals collected in the strong magnetic field scene are severely distorted. In order to avoid the situation where the signal type determination error occurs after the sample ECG signals collected in the strong magnetic field scene are segmented and processed, thereby affecting the training results of the target signal detection model, this method can obtain a reference signal, and then time-align the reference signal with the collected sample ECG signal to determine the signal type of each sample signal to be detected after the sample ECG signal is segmented, thereby improving the accuracy of determining the signal type of each sample signal to be detected after the ECG signal is segmented in the strong magnetic field scene, and further improving the accuracy of the R wave detection results.

[0083] S420 , detecting the signal type in each sample signal to be detected to determine a target detection band signal and a non-target detection band signal.

[0084] The magnetic resonance computer can detect and segment the signal type in each sample signal to be detected, and determine whether the signal type contains R wave. If the signal type in the sample signal to be detected contains R wave, the sample signal to be detected can be determined as a target detection band signal. If the signal type in the sample signal to be detected does not contain R wave, the sample signal to be detected can be determined as a non-target detection band signal.

[0085] This embodiment can perform segmentation processing on the sample ECG signal, and then determine whether each segmented sample signal to be detected is a target detection band signal or a non-target detection band signal, and then compare the target detection band signal with the output signal of the training model, and adjust the model parameters according to the comparison result to optimize the model parameters and quickly obtain the target signal detection model.

[0086] S500 , training an initial signal detection model using target detection band signals and non-target detection band signals to obtain a target signal detection model.

[0087] Specifically, the magnetic resonance computer can input the acquired target detection band signal and non-target detection band signal into the initial signal detection model, and train the initial signal detection model to obtain the target signal detection model. The initial signal detection model can be a neural network model, such as a convolutional neural network model, a multi-layer perceptron, a residual shrinkage network model, etc., without limitation. During the model training process, a machine learning algorithm can be used to train the initial signal detection model. The machine learning algorithm can be a supervised learning algorithm, such as a BP neural network, a support vector machine, a random forest, XGBoost, etc., or an unsupervised learning algorithm, such as cluster analysis, etc.

[0088] In the above-mentioned ECG signal processing method, the initial signal detection model is trained by sample ECG signals in various scenarios, thereby improving the generalization ability of the target signal detection model obtained after training. At the same time, the R wave in the ECG signal can also be detected by the target signal detection model, thereby improving the accuracy of the R wave detection result.

[0089] As one of the embodiments, the step of detecting the signal type in each sample signal to be detected in the above S420 to determine the target detection band signal and the non-target detection band signal may include: if the sample signal to be detected includes an R-band signal, marking the sample signal to be detected as a target detection band signal; if the sample signal to be detected does not include an R-band signal, marking the sample signal to be detected as a non-target detection band signal.

[0090] Specifically, if the magnetic resonance computer determines that the sample signal to be detected contains an R wave, the sample signal to be detected can be marked as a target detection band signal. The mark can be understood as the sample signal to be detected carrying a marker, which can be a number, letter and / or symbol, etc. If the magnetic resonance computer determines that the sample signal to be detected does not contain an R wave, the sample signal to be detected can be marked as a non-target detection band signal. The marker of the target detection band signal and the marker of the non-target detection band signal may be different.

[0091] In the above ECG signal processing method, the sample signal to be detected obtained after segmentation processing is marked. In order to be able to compare the target detection band signal with the output signal of the training model, the model parameters are quickly adjusted according to the comparison result to quickly obtain the target signal detection model.

[0092] As one of the embodiments, Figure 7 As shown, in the above S500, the step of training the initial signal detection model by using the target detection band signal and the non-target detection band signal to obtain the target signal detection model can be implemented by the following steps:

[0093] S510 , input the target detection band signal and the non-target detection band signal into an initial signal detection model to obtain an output signal of the initial signal detection model.

[0094] In an embodiment of the present application, a data window with a preset window width is used to process the historical ECG signal to obtain a target detection band signal and a non-target detection band signal, and the data segment of the data window is used as a feature for learning. Specifically, the output signal of the initial signal detection model can be a sample signal to be detected of different signal types, and the output signal can be a target detection band signal, or a mixed signal of a target detection band signal and a non-target detection band signal. At the initial moment, the parameters of the initial signal detection model can be the parameters obtained by initialization. Optionally, the initial signal detection model can be a combination of one or more of a feedforward neural network, a radial basis neural network, a convolutional neural network, a generative adversarial network, a deep residual network, etc.

[0095] S520, calculating the loss value of the loss function of the initial signal detection model according to the output signal and the target detection band signal.

[0096] The output signal and the target detection band signal may be equal or unequal. During the training process, the loss function of the initial signal detection model may be a mean square error loss function, a mean absolute error loss function, a quantile loss function, a cross entropy loss function, etc., without limitation. Further, the magnetic resonance computer may calculate the loss value of the loss function of the initial signal detection model based on the output signal of the initial signal detection model and the target detection band signal.

[0097] S530. Adjust the parameters of the initial signal detection model according to the loss value until a preset iteration stop condition is met, and use the initial signal detection model that meets the preset iteration stop condition as the target signal detection model.

[0098] Specifically, the magnetic resonance computer can adjust the parameters of the initial signal detection model according to the calculated loss value, and then use the initial signal detection model after adjusting the parameters as the initial signal detection model at the initial moment, and continuously execute the steps from S510 to S520 above in a loop, iteratively train the initial signal detection model to update the parameters of the initial signal detection model until the preset iteration stop condition is met to obtain the target signal detection model. At this time, the parameters of the target signal detection model are the optimal parameters. The parameters of the target signal detection model obtained after one iteration may be different, so the loss values ​​obtained may also be different. The parameters of the initial signal detection model may be network weights and network deviations.

[0099] As another embodiment, the step of training the initial signal detection model by using the target detection band signal and the non-target detection band signal in the above S500 to obtain the target signal detection model can be implemented by the following steps:

[0100] Extracting feature information from the target detection band signal and the non-target detection band signal, the feature information may be, for example, the peak absolute value, the number of peaks, the peak climbing rate, the band data point variance, and other features corresponding to the target detection band signal and / or the non-target detection band;

[0101] The characteristic information of the target detection band signal and the non-target detection band signal is input as training samples into the initial signal detection model for training to obtain the target signal detection model. The target signal detection model can reflect the mapping relationship between the characteristic information of the target detection band signal and the target detection band signal, or the mapping relationship between the characteristic information of the non-target detection band signal and the non-target detection band signal.

[0102] It is understandable that in the training of the initial signal detection model and the application stage of the target signal detection model, multiple training samples can be obtained by adjusting and learning the width of the data window, the interval points of the model judgment, and the delay time after the effective trigger, thereby improving the accuracy of real-time detection and recognition of the R wave in the electrocardiogram signal. Among them, the two parameters of the number of sampling points after each model judgment and the delay time for re-detection after each effective trigger can be optimally adjusted and learned in combination with the model and application scenario requirements.

[0103] Considering that the actual ECG signal is continuously collected, and limited by the limitation of computing performance, if 16 data points are used as the data window of the preset window width for judgment, the next judgment needs to be judged again at a certain interval of data points: ideally, the current data point collected in real time together with the first 15 points of the current data point constitute a data window, but in the data processing process, the data points of the ECG signal are still continuously collected. If the data points are not judged at this time, the system will accumulate more and more data that has not been judged, and the delay of ECG signal detection will also be longer and longer, and the real-time performance will be worse. In another embodiment, the process of training the initial signal detection model also includes the moving step length of the data window (the interval data points of two adjacent data windows), and the interval points of the corresponding model judgment. Correspondingly, when multiple detection band signals are input into the target signal detection model for band signal detection, the time information / time stamp of each detection band signal can also be obtained, and the interval points / step lengths of adjacent detection band signals are determined by the time information / time stamps of each detection band signal, and the interval points / step lengths of adjacent detection band signals and the detection band signals are jointly input into the target signal detection model.

[0104] As mentioned above, the 16 data points included in the data window in the embodiment of the present application can cover 80% of the QRS band. When the band of the current 16 data points is identified as a target band with R wave, it will be transmitted to the magnetic resonance scanning machine as a trigger, and the R wave is a peak that marks the human heartbeat cycle. In actual conditions, even if a person has a fast heartbeat, it will not beat again 0.1s after beating once. Therefore, in order to avoid false triggering, the present application delays a period of time (such as 100ms or 200ms) after detecting a target band with R wave, so as to avoid the problem of false triggering of magnetic resonance scanning caused by algorithm misidentification to a large extent. In another embodiment, the process of training the initial signal detection model also includes detection cycle / delay time, that is, the interval time between two electrocardiogram signal detections. Correspondingly, when multiple detection band signals are input into the target signal detection model for band signal detection, the time interval of the corresponding adjacent cardiac motion cycles can also be obtained, and the time interval of the adjacent cardiac motion cycles and the detection band signal are input into the target signal detection model together.

[0105] In this embodiment, the iterative training method can be a gradient descent algorithm, an Adam optimization algorithm, a deep learning optimization algorithm, etc. The learning rate in the iterative training process can be set according to actual conditions. The preset iteration stop condition includes: the number of iterations reaches a preset number threshold, and the difference between the loss value in the current iteration process and the loss value in the previous iteration process is less than or equal to the preset difference threshold.

[0106] It can also be understood that, during the iterative training process, when the number of iterations is greater than or equal to the preset number threshold, and when the difference between the loss value obtained in the current iteration and the loss value obtained in the previous iteration is less than or equal to the preset difference threshold, it indicates that the parameters of the initial signal detection model have reached the optimal parameter state, and the iterative training can be terminated. The preset number threshold and the preset difference threshold can be set according to actual conditions.

[0107] In the above-mentioned ECG signal processing method, the initial signal detection model is trained by using sample ECG signals in various scenarios to obtain a target signal detection model with good practicality and generalization ability. The target signal detection model can detect the R wave in the ECG signal in the strong magnetic field scenario, thereby improving the accuracy of the R wave detection result. Moreover, realizing R wave detection through the target signal detection model can also improve the detection speed of the R wave.

[0108] The ECG signal detection method of the embodiment of the present application can improve the accuracy of R-wave detection by ECG trigger (ECGTrigger) in high-field magnetic resonance imaging, avoid the introduction of motion artifacts into the scanning sequence using ECG Trigger due to inaccurate R-wave detection, and can also accurately detect the arrival of the actual R-wave of the detected object due to the enhancement of magnetohydrodynamic (MHD) effect in high-field magnetic resonance imaging, which causes serious distortion of the recorded ECG signal.

[0109] The present application also provides a magnetic resonance scanning control method, which is applied to Figure 1 The magnetic resonance computer in the embodiment is used as an example to illustrate, and the method includes the following steps:

[0110] First, the ECG signal to be detected of the detection object is acquired in real time, and the ECG signal to be detected is segmented to obtain one or more detection band signals. In this embodiment, the data point of the ECG signal acquired at the current moment can be used as the cutoff point of the current data window / segmentation window, and the data point of the ECG signal acquired at the current moment together with the multiple data points of the ECG signal acquired before the current moment constitute the detection band signal. By analogy, the subsequent segmentation windows are divided at every set step size.

[0111] Secondly, the detection band signal is input into the target signal detection model to perform band signal detection, and the target band signal is determined, that is, the electrocardiographic movement of the detected object is determined to be at the target time;

[0112] And, after detecting the target band signal, the excitation trigger of the magnetic resonance scanning sequence is performed. In this embodiment, the target band signal corresponds to the R wave in the electrocardiogram signal. Through the above method, the introduction of motion artifacts in the scanning sequence using electrocardiogram triggering due to inaccurate R wave detection is avoided, thereby improving the consistency of magnetic resonance K-space data acquisition.

[0113] In order to improve the accuracy of target band signal detection, the target band signal of the present application can be determined by the following method:

[0114] Acquire the ECG signal to be detected of the detected object in real time, and collect auxiliary signals at the same time as the ECG signal to be detected. The auxiliary signals may be heart sound signals, pulse signals or ultrasonic image signals, etc. Optionally, the heart sound signals may be obtained through a heart sound sensor, the pulse signals may be obtained through a pulse sensor, and the ultrasonic image signals may be obtained through an external ultrasonic probe;

[0115] Segmenting the electrocardiogram signal to be detected to obtain one or more detection band signals, and obtaining auxiliary signal segments of the detection band signals;

[0116] The detection band signal and the auxiliary signal segmentation of the detection band signal are simultaneously input into the target signal detection model to perform band signal detection to determine the target band signal. Correspondingly, during the training process of the target signal detection model, in order to prevent the labeling errors of the bands with serious ECG waveform deformation from affecting the model training results, a reference signal that is not affected by the magnetic field and can obtain the heartbeat cycle is collected at the same time when the ECG signal data is collected, and the segmented bands are assisted in calibration by time alignment with the collected ECG signal. In the embodiment of the present application, by adding the auxiliary signal segmentation of the detection band signal, even if the strong magnetic field interferes with the ECG signal detection, the accuracy of the target band signal detection can be guaranteed, thereby improving the robustness of the algorithm.

[0117] It should be understood that although Figure 1 , Figure 3-Figure 5 and Figure 7 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 , Figure 3-Figure 5 and Figure 7 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0118] In one embodiment, Figure 8 As shown, an electrocardiogram signal processing device is provided, comprising: a first segmentation processing module 11 and a band signal detection module 12, wherein:

[0119] The first segmentation processing module 11 is used to segment the electrocardiogram signal to be detected to obtain one or more detection band signals;

[0120] The band signal detection module 12 is used to input the detected band signal into the target signal detection model for band signal detection to determine the target band signal. The target signal detection model is trained based on multiple band signals of the sample ECG signal and the band signal type of each band signal. The band signal type indicates whether the band signal is a target band signal.

[0121] The electrocardiogram signal processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0122] In one embodiment, the first segmentation processing module 11 includes: a first segmentation processing unit, wherein:

[0123] The first segmentation processing unit is used to segment the ECG signal to be detected according to a preset segmentation window width to obtain a plurality of detection band signals. The preset segmentation window width is obtained according to the sampling frequency of the sample ECG signal.

[0124] The electrocardiogram signal processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0125] In one embodiment, the electrocardiogram signal processing device further includes: a sample signal acquisition module, a second segmentation processing module and a training module, wherein:

[0126] A sample signal acquisition module is used to acquire sample ECG signals in various scenarios;

[0127] The second segmentation processing module is used to segment the sample ECG signals in various scenarios to obtain target detection band signals and non-target detection band signals in the sample ECG signals;

[0128] The training module is used to train the initial signal detection model through the target detection band signal and the non-target detection band signal to obtain the target signal detection model.

[0129] The electrocardiogram signal processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0130] In one embodiment, the second segmentation processing module includes: a second segmentation processing unit and a signal type detection unit, wherein:

[0131] A second segmentation processing unit is used to segment the sample ECG signals in various scenarios according to a preset segmentation window width to obtain a plurality of sample signals to be detected; the preset segmentation window width is obtained according to the sampling frequency of the sample ECG signals;

[0132] The signal type detection unit is used to detect the signal type in each sample signal to be detected to determine the target detection band signal and the non-target detection band signal.

[0133] The electrocardiogram signal processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0134] In one embodiment, the sample ECG signal is sensitive to a magnetic field, and the second segmentation processing module further includes: a reference signal acquisition unit and a signal type determination unit, wherein:

[0135] A reference signal acquisition unit, used to acquire a reference signal, wherein the reference signal is insensitive to a magnetic field; the reference signal includes at least one of a heart sound signal, a pulse signal or an ultrasonic image signal;

[0136] A signal type determination unit is used to determine the signal type of each of the sample signals to be detected according to the reference signal.

[0137] The electrocardiogram signal processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0138] In one embodiment, the signal type detection unit includes: a first marking subunit and a second marking subunit, wherein:

[0139] A first marking subunit, used for marking the sample signal to be detected as a target detection band signal when the sample signal to be detected includes an R band signal;

[0140] The second marking subunit is used to mark the sample signal to be detected as a non-target detection band signal when the sample signal to be detected does not contain an R band signal.

[0141] The electrocardiogram signal processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0142] For the specific definition of the ECG signal processing device, please refer to the definition of the ECG signal processing method above, which will not be repeated here. Each module in the above-mentioned ECG signal processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0143] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the electrocardiogram signal to be detected. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for processing electrocardiogram signals is implemented.

[0144] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0145] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0146] Segment the electrocardiogram signal to be detected to obtain one or more detection band signals;

[0147] The detected band signal is input into the target signal detection model for band signal detection to determine the target band signal. The target signal detection model is trained based on the band signals of sample ECG signals in various scenarios and the band signal types of each band signal. The band signal type indicates whether the band signal is a target band signal.

[0148] In one embodiment, a storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0149] Segment the electrocardiogram signal to be detected to obtain one or more detection band signals;

[0150] The detected band signal is input into the target signal detection model for band signal detection to determine the target band signal. The target signal detection model is trained based on the band signals of sample ECG signals in various scenarios and the band signal types of each band signal. The band signal type indicates whether the band signal is a target band signal.

[0151] 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 the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer 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 can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0152] 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.

[0153] The above-mentioned 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 invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations 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 patent of the present application shall be subject to the attached claims.

Claims

1. A method for processing an electrocardiogram signal, characterized in that: The method comprises: Segment the electrocardiogram signal to be detected to obtain one or more detection band signals; Inputting the detected band signal into a target signal detection model to perform band signal detection and determine a target band signal, wherein the target signal detection model is trained based on multiple band signals of a sample electrocardiogram signal and a band signal type of each band signal, wherein the band signal type indicates whether the band signal is a target band signal; and the target band signal includes an R band signal; The training process of the target signal detection model includes: Acquire sample ECG signals in a variety of scenarios; the multiple scenarios include a non-magnetic field scenario and a strong magnetic field scenario; Segmenting the sample ECG signals in the various scenarios to obtain a plurality of sample signals to be detected; Determine the target detection band signal and the non-target detection band signal in the sample electrocardiogram signal according to the signal type in each of the sample signals to be detected; The initial signal detection model is trained by using the target detection band signal and the non-target detection band signal to obtain the target signal detection model.

2. The method according to claim 1, characterized in that The segmentation process of the electrocardiogram signal to be detected to obtain one or more detection band signals includes: The electrocardiogram signal to be detected is segmented and processed according to a preset segmentation window width to obtain a plurality of detection band signals, wherein the preset segmentation window width is obtained according to a sampling frequency of the sample electrocardiogram signal.

3. The method according to claim 1, characterized in that The segmentation process of the sample ECG signals in the multiple scenarios to obtain a plurality of sample signals to be detected includes: According to the preset segmentation window width, the sample ECG signals in the multiple scenarios are segmented and processed to obtain a plurality of sample signals to be detected.

4. The method according to claim 1, characterized in that: The method further comprises: Acquiring a reference signal, wherein the reference signal is insensitive to a magnetic field; The signal type of each of the sample signals to be detected is determined according to the reference signal.

5. The method according to claim 4, characterized in that The reference signal includes at least one of a heart sound signal, a pulse signal or an ultrasonic image signal.

6. The method according to claim 5, characterized in that The detecting the signal type in each of the sample signals to be detected to determine the target detection band signal and the non-target detection band signal includes: If the sample signal to be detected includes an R-band signal, marking the sample signal to be detected as the target detection band signal; If the sample signal to be detected does not include the R-band signal, the sample signal to be detected is marked as the non-target detection band signal.

7. The method according to claim 1, characterized in that The method further comprises: Obtaining electrocardiogram signals collected by magnetic resonance equipment; The electrocardiogram signal is normalized to obtain the electrocardiogram signal to be detected.

8. An electrocardiogram signal processing device, characterized in that: The device comprises: A segmentation processing module, used for segmenting the electrocardiogram signal to be detected to obtain one or more detection band signals; A band signal detection module, used for inputting the detected band signal into a target signal detection model to perform band signal detection and determine a target band signal, wherein the target signal detection model is obtained by training based on multiple band signals of a sample ECG signal and the band signal type of each band signal, wherein the band signal type indicates whether the band signal is a target band signal; and the target band signal includes an R band signal; The training process of the target signal detection model includes: Acquire sample ECG signals in a variety of scenarios; the multiple scenarios include a non-magnetic field scenario and a strong magnetic field scenario; Segmenting the sample ECG signals in the various scenarios to obtain a plurality of sample signals to be detected; Determine the target detection band signal and the non-target detection band signal in the sample electrocardiogram signal according to the signal type in each of the sample signals to be detected; The initial signal detection model is trained by using the target detection band signal and the non-target detection band signal to obtain the target signal detection model.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.