Cardiac-like peak detection, heart rate determination method and related products

By performing peak detection and filtering on the time domain signals of characteristic pixels in the heart-like image, combined with frequency domain signal analysis, the problem of difficulty in determining the heart-like heart rate in the existing technology is solved, and accurate monitoring of the heart-like heart rate is achieved.

CN116098598BActive Publication Date: 2024-10-01MEGAROBO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211690551.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2024-10-01
Estimated Expiration
2042-12-27

AI Technical Summary

Technical Problem

It is difficult to accurately determine the heart rate of the heart-like device with existing technology and cannot effectively understand the working status of the heart-like device.

Method used

By performing peak detection on the time domain signals of characteristic pixels in the heart-like image, the peak filtering threshold is determined, and peaks that do not meet the threshold are filtered out. Combined with frequency domain signal analysis, the heart rate of the heart-like heart is determined.

Benefits of technology

The accurate detection of heart-like heart rate is achieved, and the accuracy and reliability of heart-like state monitoring are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116098598B_ABST
    Figure CN116098598B_ABST
Patent Text Reader

Abstract

The present application discloses a method for determining a heart rate of a similar heart, realizing a heart-like peak detection, performing a first peak detection on a time domain signal of a characteristic pixel point in a heart-like image, obtaining a peak detection result, determining a peak filtering threshold, the peak filtering threshold being the maximum peak value contained in a preset peak range, and filtering the peak detection result according to the peak filtering threshold. Part of the interference signal can be filtered out, thus, being helpful to improve the accuracy of subsequently determining a heart-like heart rate based on the peak detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical technology, and in particular to a heart-like wave peak detection, heart rate determination method and related products. Background Art

[0002] The incidence of heart disease in modern people is gradually increasing. Correspondingly, the continuous development of modern medicine has designed a variety of treatment methods to treat heart disease. Among them, related technologies that use heart-like devices to replace or assist the human heart have gradually been widely used.

[0003] Among them, in the daily work process of the heart-like heart, in the process of testing the heart-like heart, it is necessary to determine the specific heart rate of the heart-like heart so as to understand the working status of the heart-like heart. The method or device for testing the conventional heart rate is not suitable for testing the heart rate of the heart-like heart. Therefore, it is difficult to know the heart rate of the heart-like heart by existing means, and it is also impossible to know its current status.

[0004] How to determine the heart rate of a heart-like body is a technical problem that needs to be solved by those skilled in the art. Summary of the invention

[0005] In view of this, the present invention provides a heart-like peak detection, heart rate determination method and related products, which are used to determine the heart rate of the heart-like itself through a heart-like video image.

[0006] In order to solve the above technical problems, the present application provides a heart-like peak detection method, the method comprising:

[0007] Performing a first peak detection on the time domain signal of the characteristic pixel point in the heart-like image to obtain a peak detection result;

[0008] Determine a peak filtering threshold value according to the peak detection result, wherein the peak filtering threshold value is a maximum value when the number of peaks in a preset peak range is less than a preset threshold number;

[0009] The peak detection result is filtered out according to the peak filtering threshold value, with the peak value being smaller than the peak value filtering threshold value.

[0010] Optionally, performing a first peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain the peak detection result further includes:

[0011] Determine whether the ratio of the minimum trough value to the maximum peak value of the time domain signal of the characteristic pixel point is greater than a preset hyperparameter;

[0012] If yes, it is determined whether there is an abnormal frequency according to the peak detection result, and the peak corresponding to the abnormal frequency is deleted from the peak detection result.

[0013] Optionally, the preset peak range accounts for between 1 / 4 and 1 / 5 of the total value range of the time domain signal of the characteristic pixel point.

[0014] Optionally, determining a peak filtering threshold according to the peak detection result specifically includes:

[0015] According to the total value range of the time domain signal of the characteristic pixel point, dividing the total value range into a preset first number of value ranges;

[0016] Counting the total number of peaks within the value range of a preset second number of consecutive peaks according to the peak detection result;

[0017] Determine whether the total number of peaks is less than a preset threshold number;

[0018] If so, a maximum value is determined in the value range of the second number of consecutive preset values ​​as the peak filtering threshold.

[0019] Optionally, determining a peak filtering threshold according to the peak detection result further specifically includes:

[0020] A class level is set for each of the preset first number of value ranges, and the larger the value in the value range, the higher the class level;

[0021] Counting the total number of peaks within a preset second number of class levels continuously according to the peak detection result;

[0022] When the total number of wave peaks is less than the preset threshold number, determining the highest class level among a second number of consecutive class levels;

[0023] Using the highest class level as the peak filtering threshold;

[0024] The filtering out the peak values ​​smaller than the peak filtering threshold value from the peak detection result according to the peak filtering threshold value specifically includes:

[0025] The peaks in the peak detection results that are located in the class levels that are less than or equal to the highest class level are filtered out.

[0026] Optionally, performing peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain the peak detection result specifically includes:

[0027] Determine whether the pixel value of the time domain signal of the characteristic pixel point at the current time point is greater than the pixel values ​​at the previous time point and the next time point;

[0028] If yes, the pixel value at the current time point is taken as the peak value.

[0029] Optionally, the method further includes:

[0030] Converting the time domain signals of all the pixel points on the heart boundary of the continuous multiple frames of the heart-like images into frequency domain signals;

[0031] According to the amplitude values ​​corresponding to the frequency domain signals of all the pixels, the pixel corresponding to the frequency domain signal which is within the normal heart rate range and has the largest amplitude value is determined as the characteristic pixel.

[0032] Optionally, determining that the pixel point corresponding to the frequency domain signal that is within the normal heart rate range and has the largest amplitude value is the characteristic pixel point specifically includes:

[0033] Determine the pixel point corresponding to the frequency domain signal which is within the normal heart rate range and has the largest amplitude value as the preliminary feature pixel point;

[0034] Determine the amplitude value corresponding to the frequency domain signal of a preset number of pixel points on the heart boundary within a preset distance from the preliminary pixel point;

[0035] Comparing whether the difference between the amplitude values ​​of the preset number of pixel points and the maximum amplitude value is within a preset difference range;

[0036] If yes, determine the preliminary feature pixel point as the feature pixel point.

[0037] Optionally, performing a first peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain the peak detection result specifically includes:

[0038] Performing a first peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain a preliminary peak detection result;

[0039] It is determined whether the preliminary peak detection result is valid; if so, the preliminary peak detection result is used as the peak detection result.

[0040] Optionally, performing peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain the peak detection result further specifically includes:

[0041] If invalid, performing a second peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to determine whether the result of the second peak detection is valid; if valid, taking the result of the second peak detection as the peak detection result;

[0042] The first wave peak detection and the second wave peak detection are one and the other of the forward wave peak detection and the reverse wave peak detection.

[0043] Optionally, the first peak detection result and the second peak detection result are both referred to as peak detection results;

[0044] The following validity verification steps are adopted for the peak detection result:

[0045] Determine a set of frequency values ​​including a plurality of frequency values ​​based on the peak detection result;

[0046] Obtaining a ratio of a first number of the frequency values ​​in the normal heart rate range to a total number of the frequency values ​​in the set of frequency values;

[0047] It is determined whether the proportion is greater than a preset proportion. If so, it is determined that the peak detection result corresponding to the set of frequency values ​​is valid.

[0048] The present application also provides a method for determining a heart rate similar to a heart, the method comprising:

[0049] Using the above peak detection method, peak detection is performed on the time domain signal of the characteristic pixel points in the continuous multi-frame cardiac image to obtain the peak detection result;

[0050] The heart rate of the heart of the type is determined according to the peak detection result.

[0051] Optionally, determining the heart rate of the heart-like condition according to the peak detection result specifically includes:

[0052] The instantaneous heart rate value of the heart of the type is determined according to the filtered peak detection result and displayed.

[0053] The present application also provides a heart-like peak detection device, the device comprising: a first peak detection result acquisition module, used to perform a first peak detection on a time domain signal of a characteristic pixel point in a heart-like image to obtain a peak detection result;

[0054] A peak filtering threshold determination module, used to determine a peak filtering threshold according to the peak detection result, wherein the peak filtering threshold is the maximum peak when the number of peaks within a preset peak range is less than a preset threshold number;

[0055] The peak filtering module is used to filter out the peak values ​​less than the peak value filtering threshold value according to the peak filtering threshold value in the peak detection result.

[0056] The present application also provides a heart-like heart rate determination device, the device comprising:

[0057] A peak detection module, used to perform a first peak detection on the time domain signal of the characteristic pixel point in the cardiac image using the peak detection device;

[0058] The heart rate determination module is used to determine the heart rate of the type of heart according to the peak detection result.

[0059] The present application also provides an electronic device, including:

[0060] Memory for storing computer programs;

[0061] A processor is used to implement the steps of the above-mentioned cardiac-like peak detection method and cardiac-like heart rate determination method when executing the computer program.

[0062] A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned cardiac-like peak detection method and cardiac-like heart rate determination method.

[0063] Compared with the prior art, the present application is applied to determine the heart rate of a heart-like image. By performing a first peak detection on the time domain signal of a characteristic pixel point in a heart-like image, a peak detection result is obtained, and a peak filtering threshold is determined. The peak filtering threshold is the maximum peak value when the peaks contained in the preset peak range are less than the preset threshold number, and the peak detection result is filtered according to the peak filtering threshold. The preset threshold number is usually set to a smaller value, preferably set to 1, for the purpose of when the number of peaks in the preset peak range is less than the preset threshold number (that is, preferably 0), indicating that the number of peaks in the preset peak range is small, then the maximum peak value is determined within the preset peak range, and the peaks less than the maximum peak value are filtered out, that is, some interference signals can be filtered out, therefore, it is beneficial to improve the accuracy of subsequent determination of the heart-like heart rate based on the peak detection result. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0065] Figure 1 A flow chart of a heart rate determination method for a heart-like heart provided in the present application;

[0066] Figure 2 A flow chart of a cardiac-like peak detection method provided in the present application;

[0067] Figure 3a An example of the first frame of the video provided for this application;

[0068] Figure 3b Provide an example of the frame image cutting background process for this application;

[0069] Figure 3c An example of sequential arrangement of cardiac images provided in this application;

[0070] Figure 4 An example of peak value classification provided for this application;

[0071] Figure 5 A schematic diagram of the result of positive peak detection of a cardiac-like waveform provided in the present application;

[0072] Figure 6 A schematic diagram of the results of reverse peak detection of a cardiac-like waveform provided in the present application;

[0073] Figure 7 This is a structural diagram of a heart-like peak detection device provided in this application. DETAILED DESCRIPTION

[0074] The core of the present application is to provide a method for determining a heart rate similar to a heart, which can quickly identify a specific heart rate similar to a heart under a heart-like image. Another core of the present application is a heart rate determination device, equipment and a readable storage medium.

[0075] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0076] This application provides a heart rate determination method similar to that of a heart. Please refer to Figure 1 , Figure 1 A flowchart of a method for determining a heart rate similar to a heart provided in an embodiment of the present application, the method mainly comprises the following steps:

[0077] S101, using a peak detection method, performing peak detection on time domain signals of characteristic pixel points in multiple consecutive frames of cardiac-like images to obtain peak detection results.

[0078] In the heart-like image, in the process of pixelating the heart-like image, the heart-like image is converted into a pixel image composed of multiple pixel points. At the same time, a plurality of temporally continuous frames of heart-like images can be obtained in the heart-like video. A heart-like video can include multiple frames of heart-like images. Therefore, the heart-like images have a relationship of being arranged in chronological order.

[0079] This embodiment takes characteristic pixel points in a heart-like image and observes the movement of the heart-like part thereof over time, such as Figure 3c The pixel position of the upper right corner of the heart-like image shown changes with time, and its pixel value in multiple frames of heart-like images changes, wherein it should be emphasized that the characteristic pixel remains unchanged in multiple frames of continuous heart-like images. The reason why the characteristic pixel proposed in this application generates a time domain signal is that the position of the characteristic pixel does not change, but the pixel value at the characteristic pixel changes with the movement of the heart-like image. Therefore, it can be understood that the time domain signal of the characteristic pixel is the pixel value change signal of the characteristic pixel over time, wherein the heart-like movement includes contraction, expansion, etc. The content of this embodiment generates a time domain signal by observing the movement of characteristic pixels in multiple frames of heart-like images, wherein the multiple frames of heart-like images refer to images generated by dividing the heart-like video at the time interval of each frame transmission.

[0080] In order to understand whether the time domain signal is reliable, it is necessary to identify the time domain signal. The content of this embodiment proposes to perform peak detection on the peaks of the time domain signal. The position of a pixel point consists of a main peak, a secondary peak and other peaks in the pixel values ​​of all video frames. At the same time, different peak frequencies will be generated between peaks due to different spacings. The embodiment of the present application performs a first peak detection on the time domain signal to obtain a first peak detection result and obtain relevant data of the peak.

[0081] In the process of performing peak detection, the wave to be detected may contain multiple main peaks and secondary peaks, making it difficult to filter the wave to ensure the accuracy of the peak value generated by the final filtering. In the present embodiment, the peaks obtained from the peak detection results in the peak detection method are filtered so as to determine the heart rate-like heart rate based on the filtered peak detection results.

[0082] S102, determining a heart rate similar to a heart attack according to the peak detection result, that is, determining a heart rate similar to a heart attack according to the filtered peak detection result.

[0083] In the embodiment of the present application, after filtering the peak detection results, peaks with inaccurate peak values ​​or peak values ​​that do not meet the requirements for determining a heart rate-like peak are deleted, and a heart rate-like heart rate acquisition step is performed based on the processed peaks.

[0084] In the present embodiment, it is proposed to perform peak detection on the time domain signal of the characteristic pixel points in the heart image, and filter the peak detection results to delete the peaks that do not meet the requirements in the peak detection results, thereby ensuring the accuracy of the deleted peaks, thereby improving the accuracy of the heart rate-like generated by the peaks.

[0085] In one embodiment of the present application, determining the heart rate of the heart-like body according to the filtered peak detection result specifically includes:

[0086] The instantaneous heart rate value of the heart of the type is determined according to the filtered peak detection result and displayed.

[0087] In the embodiments of the present application, each peak value has its own frame image position, and the distance between adjacent frame images is a fixed value. After filtering the peak detection results, the accuracy of the frame intervals between the heart-like peak detection results is guaranteed. Then, based on the frame intervals between adjacent peak detection results, the instantaneous heart rate in the frame interval can be calculated. On the premise of ensuring the accuracy of the frame intervals of the peak detection results, the accuracy of the calculated instantaneous heart rate can be further achieved.

[0088] This application provides a heart rate determination method similar to that of a heart. Please refer to Figure 2 , Figure 2 A flowchart of a heart-like peak detection method provided in an embodiment of the present application, the method mainly comprises the following steps:

[0089] S200, preprocessing the heart-like video to obtain a heart-like image.

[0090] The embodiment of the present application mainly aims at recognizing and confirming the heart rate of the heart-like beating conditions shown in the heart-like video. Specifically, the heart-like video can be divided into a plurality of consecutive frames of heart-like images that change over time, such as Figure 3c As shown, each frame of the heart-like image can represent the beating state of the heart-like image of the current frame node. At the same time, before obtaining the heart-like image, the content of this embodiment further includes cropping each frame of the heart-like original image of the heart-like video so that the size of the cropped heart-like image is a small image including a complete heart-like image.

[0091] Specifically, after obtaining the video data of the organoid heart, we first convert the video into frame images. From the image, we can see that the organoid heart only occupies a small part of the whole picture. The rest of the background is actually not needed in the analysis process. We need to segment the area where the organoid heart is located. This can speed up the analysis and save computer resources. Therefore, we convert the first frame of the video or any frame image into a grayscale image to find the edge area boundary line of the organoid heart, as shown below Figure 3a As shown by the black circle in : After obtaining the contour area, the lines of the area are converted into a set of points, and the maximum and minimum x, y values ​​are found. Based on the value and a custom edge padding (currently 20 pixels are used, that is, 20 pixels are expanded), the coordinates of the upper left corner and the lower right corner are calculated, as shown in Figure 3b The two red and gray dots in the figure below crop all video frames according to the rectangular area formed by these two gray dots, such as Figure 3bAs shown, the first step of preprocessing can be completed to obtain the preprocessed image.

[0092] The pre-processed image is Gaussian downsampled three times to achieve image compression and speed up the calculation. The image data after the third downsampling is obtained as the data after the second step of preprocessing. At the same time, the g channel in each frame of the image is used as the analysis channel of the frame, and all the data after processing are obtained as heart-like images (after certain experiments, using three-channel data and single-channel data has basically no effect on the results, and both can accurately obtain the heart rate of the organoid heart, so single-channel data is used as the analysis data of each frame, and both R and B channels are acceptable). Figure 3c As shown, the multiple consecutive heart-like images in the figure are arranged in the time sequence of the video frame number, the image height is H, and the image width is W.

[0093] S201, performing a first peak detection on a time domain signal of a characteristic pixel point in a cardiac-like image to obtain a peak detection result.

[0094] Peak detection is performed on the time domain signal of the characteristic pixel point of the present application to obtain the peak value and peak value position represented by the peak signal, and the peak value size and peak value position together serve as the peak detection result, wherein the peak value size represents the amplitude value of the time domain signal at the current frame node, and the peak value position represents the image frame where the peak value is located.

[0095] S202, determining a peak filtering threshold according to the peak detection result, where the peak filtering threshold is the maximum value when the number of peaks in a preset peak range is less than a preset threshold number.

[0096] Determine the peak filtering threshold. In the embodiments of the present application, the peak filtering threshold is determined as a peak value within a preset peak range, the number of which is less than a certain number, that is, the maximum peak value of the preset peak range is used as the peak filtering threshold.

[0097] In one embodiment of the present application, determining a peak filtering threshold based on the peak detection result specifically includes: dividing the total value range into a preset first number of value ranges based on the total value range of the time domain signal of the characteristic pixel point; counting the total number of peaks within a preset second number of value ranges continuously based on the peak detection result; judging whether the total number of peaks is less than a preset threshold number; if so, determining the maximum value in the preset second number of value ranges continuously as the peak filtering threshold.

[0098] To achieve the above-mentioned determination of the peak filtering threshold according to the peak detection result, more specifically, in one embodiment of the present application, the determination of the peak filtering threshold according to the peak detection result further specifically includes: setting a class level for each of the preset first number of value ranges, and the larger the value in the value range, the higher the class level; counting the total number of peaks within a continuous preset second number of class levels according to the peak detection result; when the total number of peaks is less than the preset threshold number, determining the highest class level among the continuous preset second number of class levels; and using the highest class level as the peak filtering threshold;

[0099] In this case, the peak detection result is filtered out according to the peak filtering threshold, and the peaks that are smaller than the peak filtering threshold are specifically filtered out, which includes: filtering out the peaks in the peak detection result that are located in the class level that is less than or equal to the highest class level.

[0100] For example, in one embodiment of the present application, the entire value range of the feature pixel point is divided into 1 to 20 classes (i.e., a preset first number) according to size. Each class has a certain value range. The larger the class, the larger the value in the value range. In each class, there may be a certain number of peaks or no peaks. Specifically, based on the total number of peaks in 10 consecutive preset classes (i.e., the preset second number), it is judged whether it is less than the preset threshold number. When the 10 consecutive classes are 2 to 11 classes, the number of peaks contained is 0, which is less than the preset threshold number 1. Therefore, the maximum value in the value range of class 12 is used as the peak filtering threshold, or class 12 is used as the peak filtering threshold. Specifically, if Figure 4 As shown, the peak value is divided into 40 classes. The first column (left) in the figure is the value range corresponding to each class, the second column is the number of peak values ​​of the current time domain signal in each class, and the third column (right) is the percentage of the probability of the peak value contained in each column to the total peak value. When the preset threshold number is 1, the preset number of peaks between 10 consecutive classes is 0. Therefore, 1.982 is determined as the peak filtering threshold, or the class where 1.982 is located in the 0th class is used as the peak filtering threshold, so that the subsequent peak values ​​meet the peak requirements.

[0101] S203: filtering out peak values ​​smaller than the peak filtering threshold from the peak detection result according to the peak filtering threshold.

[0102] After the peak detection threshold is determined, the peak values ​​that are smaller than the peak detection result are filtered. Specifically, in the above embodiment, the peak detection threshold is determined to be 1.982, and the peak values ​​that are smaller than 1.982 are filtered to ensure that the peak value is not smaller than 1.982.

[0103] In an embodiment of the present application, peak detection is performed on a heart-like object to filter out peaks whose peak values ​​in the peak detection results do not meet the peak detection requirements, thereby preventing errors in the peak detection results and ensuring the normality of data generated based on the peak detection results.

[0104] In one embodiment of the present application, performing a first peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain the peak detection result further includes:

[0105] Determine whether the ratio of the minimum trough value to the maximum peak value of the time domain signal of the characteristic pixel point is greater than a preset hyperparameter;

[0106] If yes, it is determined whether there is an abnormal frequency according to the peak detection result, and the peak corresponding to the abnormal frequency is deleted from the peak detection result.

[0107] In the technical solution of the present embodiment, for the peak detection result generated by the first peak detection result, the technical solution of the present embodiment proposes to calculate the minimum trough value and the maximum peak value of the time domain signal, and verify whether the ratio of the minimum trough value to the maximum peak value is greater than the preset hyperparameter. If the ratio exceeds the preset hyperparameter, it is determined that the time domain signal is probably normal, and it may be a time domain signal affected by local factors. In order to improve the accuracy of heart rate detection in the future, it is further determined whether there is an abnormal frequency in the peak detection result. The existing abnormal frequency will have an abnormal effect on the time domain signal, and the peak corresponding to the abnormal frequency needs to be deleted to ensure the overall accuracy of the time domain signal. The content of the present embodiment relies on the minimum trough value and the maximum peak value of the time domain signal to compare the parameters and the preset hyperparameters, so as to quickly determine the normal or abnormal state of the time domain signal, so as to achieve the accuracy judgment of the peak detection result. Preferably, the hyperparameter is 0.65, which can be applicable to many different types of heart-like heart.

[0108] For example: if the frames where the peaks are located are 20, 25, 40, 61, 85, 104, 126, 147, 167; the intervals between frames are 20, 5, 15, 20, 21, 24, 19, 22, 21, 20; according to the data distribution of the intervals between frames, most of the intervals are around 20, and the interval is 5. Converted to frequency, if the video pfs (refresh frequency) is 10, then the heart rate corresponding to 5 is (10 / 5)*60=120, which is an abnormal value. Therefore, 25 frames will be deleted from the peak list for the frames before and after the abnormal value, 20, 25, 40, and the remaining data is: frames: 20, 40, 61, 85, 104, 126, 147, 167; frame spacing: 20, 20, 20, 21, 24, 19, 22, 21, 20. Finally, according to the frame spacing, the instantaneous heart rate value of the heart-like image can be determined, and the instantaneous heart rate value can be output in real time.

[0109] In an embodiment of the present application, the preset peak range accounts for between 1 / 4 and 1 / 5 of the total range of values ​​of the time domain signal of the characteristic pixel point.

[0110] In the embodiments of the present application, the preset peak range is further described, specifically, Figure 4 The values ​​of the time domain signal shown are divided into 40 classes, each class corresponds to a value range, and the total value range is between 0.364 and 2.993. This embodiment further illustrates that the proportion of the total value range of the time domain signal is between 1 / 4 and 1 / 5, that is, by selecting between 1 / 4 and 1 / 5 of 0.364 to 2.993, the range of the preset peak range can be determined, and the preset second number can be determined according to the preset peak range. The content of this embodiment selects the preset peak range according to the total value range of the time domain signal, so that the set preset peak range is related to the overall peak range of the time domain signal, and the accurate generation and selection of the peak filtering threshold is realized.

[0111] The technical solution of this embodiment is used to filter the smaller, discrete values ​​of the peak value to make the peak value as large and concentrated as possible, so that the cardiac-like heart rate curve finally executed based on the filtered peak value is more concentrated and reliable.

[0112] In an embodiment of the present application, performing peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain the peak detection result specifically includes:

[0113] Determine whether the pixel value of the time domain signal of the characteristic pixel point at the current time point is greater than the pixel values ​​at the previous time point and the next time point;

[0114] If yes, the pixel value at the current time point is taken as the peak value.

[0115] In the process of peak detection, when confirming the peak, it is carried out in the order of time points, that is, in the current time period, including the current time point, the previous time point, and the next time point. The embodiment of the present application determines whether the peak value at the current time point is the largest. If so, the current time point is the peak.

[0116] In one embodiment of the present application, for the selection of feature pixels:

[0117] Converting the time domain signals of all the pixel points on the heart boundary of the continuous multiple frames of the heart-like images into frequency domain signals;

[0118] According to the amplitude values ​​corresponding to the frequency domain signals of all the pixels, the pixel corresponding to the frequency domain signal which is within the normal heart rate range and has the largest amplitude value is determined as the characteristic pixel.

[0119] According to the amplitude values ​​corresponding to the frequency domain signals of all pixels, the pixel corresponding to the frequency domain signal with the largest amplitude value within the normal heart rate range is determined as the characteristic pixel. Specifically, the normal heart rate range of the heart-like heart rate is determined. According to experimental data statistics, it is found that the normal heart rate range of the heart-like heart rate is between 6 and 130. First, for the frequency spectrum of the pixel sequence of each heart-like pixel, perform frequency screening between 6 and 130, and delete the remaining frequencies (the frequency coefficients outside 6 to 130 are set to 0). For the pixel sequence of each heart-like pixel in the frequency range of 6 to 130, determine the maximum amplitude of each heart-like pixel; finally, compare the maximum amplitudes of all heart-like pixels, and select the pixel corresponding to the maximum value among the multiple maximum amplitudes, which is the characteristic pixel.

[0120] From this, it can be understood that the characteristic pixel points are the pixel points corresponding to the maximum amplitude value and the frequency domain signal within the correct heart rate range in multiple consecutive frames of heart-like images. This method can not only ensure that the frequency of the characteristic pixel points is within the correct heart rate range of the heart-like image, but also ensure that the characteristic pixel points can reflect larger heart rate beats, which is beneficial to determine the accuracy of the heart rate value.

[0121] In a specific embodiment of confirming the characteristic pixel point, the step of determining the pixel point corresponding to the frequency domain signal within the normal heart rate range and having the largest amplitude value as the characteristic pixel point specifically includes:

[0122] Determine the pixel point corresponding to the frequency domain signal which is within the normal heart rate range and has the largest amplitude value as the preliminary feature pixel point;

[0123] Determine the amplitude value corresponding to the frequency domain signal of a preset number of pixel points on the heart boundary within a preset distance from the preliminary pixel point;

[0124] Comparing whether the difference between the amplitude values ​​of the preset number of pixel points and the maximum amplitude value is within a preset difference range;

[0125] If yes, determine the preliminary feature pixel point as the feature pixel point.

[0126] The embodiment of the present application discloses a verification method for characteristic pixel points. First, the frequency domain signal corresponding to the maximum amplitude value within the normal heart rate range is used as a preliminary characteristic pixel point, and a preset number of other pixel points within a preset distance of the preliminary characteristic pixel point are compared, and the difference between the amplitude values ​​corresponding to the other pixel points and the amplitude value of the preliminary characteristic pixel point is calculated to calculate whether the difference is within the preset difference range. Although the preliminary characteristic pixel point corresponds to the maximum amplitude value, the amplitude values ​​of other pixel points adjacent to it should not differ much from the maximum amplitude value, so that the preliminary characteristic pixel point can be regarded as a characteristic pixel point.

[0127] Therefore, it can be understood that the above steps actually add the noise vibration check when determining the feature pixel point to avoid selecting an erroneous pixel point. More specifically, in order to avoid the initial feature pixel point being the wrong maximum amplitude point, the amplitude of the pixels around the initial feature pixel point is also calculated. If the vibration amplitude of the surrounding points is also relatively large to a certain extent, then the initial feature pixel point is determined to be the pixel point with the largest amplitude and can be used as the feature pixel point.

[0128] In an embodiment of the present application, performing a first peak detection on a time domain signal of a characteristic pixel point in a cardiac-like image to obtain a peak detection result specifically includes:

[0129] Performing a first peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain a preliminary peak detection result;

[0130] It is determined whether the preliminary peak detection result is valid; if so, the preliminary peak detection result is used as the peak detection result.

[0131] The content of this embodiment is for characteristic pixel points in a heart-like image, and based on the time domain signal generated by the position change of multiple frames of heart-like images along with the movement of the heart-like, the time domain signal is subjected to peak detection to generate a first peak detection result, and the heart rate of the heart-like is determined after the validity of the first peak detection result is confirmed and verified. The technical solution of this application can realize the generation of a time domain signal generated along with the movement of the heart-like from the characteristic pixel points contained in the heart-like image, and after verifying the first peak detection result of the time domain signal, the reliability of the time domain signal is ensured, thereby accurately calculating the heart rate of the heart-like.

[0132] The step of performing peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain the peak detection result further specifically includes:

[0133] If invalid, performing a second peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to determine whether the result of the second peak detection is valid; if valid, taking the result of the second peak detection as the peak detection result;

[0134] The first wave peak detection and the second wave peak detection are one and the other of the forward wave peak detection and the reverse wave peak detection.

[0135] The present application discloses an implementation method. When the first peak detection result fails to pass the verification, that is, most of the frequencies in the first peak detection result are located outside the time beating frequency of 0.1 to 0.16, this embodiment proposes to perform a second peak detection on the time domain signal, obtain the second peak test result, and verify the second peak detection result. If the second peak detection result passes the verification, the heart rate of the type of heart is determined based on the second peak detection result. Among them, the first peak frequency detection and the second peak detection are one and the other of the forward peak detection and the reverse peak detection. Furthermore, the forward peak detection and the reverse peak detection are respectively the processes of treating the peaks and troughs of the same time domain signal as peaks for peak testing. Here, how the forward peak detection and the reverse peak detection define the peaks and troughs of the time domain signal is not further explained. Figure 5 It is a schematic diagram of the result of positive peak detection; Figure 6 This is a schematic diagram of the results of reverse peak detection.

[0136] In one embodiment of the present application, the first peak detection result and the second peak detection result are both referred to as peak detection results;

[0137] The first peak detection result or the second peak detection result is subjected to the following validity verification steps:

[0138] Determine a set of frequency values ​​including a plurality of frequency values ​​based on the peak detection result;

[0139] Obtaining a ratio of a first number of the frequency values ​​in the normal heart rate range to a total number of the frequency values ​​in the set of frequency values;

[0140] It is determined whether the proportion is greater than a preset proportion. If so, it is determined that the peak detection result corresponding to the set of frequency values ​​is valid.

[0141] The embodiment of the present application further emphasizes the verification process of the first peak detection result or the second peak detection result. The first peak detection result or the second peak detection result each includes a group of frequencies, determines whether each frequency domain is within the normal heart rate range, and counts the number of frequencies within the normal heart rate range. When the ratio of the number to the proportion of a group of frequencies is greater than a threshold, it is considered that most of the group of frequencies are normal frequency domains and are therefore valid.

[0142] The present application also provides a heart-like peak detection device, such as Figure 7 As shown, the device comprises:

[0143] A first peak detection result acquisition module 701 is used to perform a first peak detection on the time domain signal of the characteristic pixel point in the cardiac image to obtain a peak detection result;

[0144] A peak filtering threshold determination module 702 is used to determine a peak filtering threshold according to the peak detection result, wherein the peak filtering threshold is the maximum peak when the number of peaks within a preset peak range is less than a preset threshold number;

[0145] The peak filtering module 703 is used to filter out the peak values ​​smaller than the peak value filtering threshold value according to the peak filtering threshold value in the peak detection result.

[0146] Optionally, the device further includes an abnormality judgment module, which is used to:

[0147] Determine whether the ratio of the minimum trough value to the maximum peak value of the time domain signal of the characteristic pixel point is greater than a preset hyperparameter;

[0148] If yes, it is determined whether there is an abnormal frequency according to the peak detection result, and the peak corresponding to the abnormal frequency is deleted from the peak detection result.

[0149] Optionally, the preset peak range accounts for between 1 / 4 and 1 / 5 of the total value range of the time domain signal of the characteristic pixel point.

[0150] Optionally, a peak filtering threshold determination module is specifically used to: divide the total value range into a preset first number of value ranges based on the total value range of the time domain signal of the characteristic pixel point; count the total number of peaks within the value range of a preset second number of consecutive values ​​based on the peak detection result; determine whether the total number of peaks is less than a preset threshold number; if so, determine the maximum value in the value range of the preset second number of consecutive values ​​as the peak filtering threshold.

[0151] Optionally, the peak filtering threshold determination module further specifically includes:

[0152] A class grading submodule, configured to set a class level for each of the preset first number of value ranges, wherein the larger the value in the value range, the higher the class level;

[0153] A peak quantity counting submodule, used for counting the total number of peaks within a second number of consecutive class levels according to the peak detection result;

[0154] A grading submodule, configured to determine a highest class level among a second number of consecutive class levels when the total number of wave peaks is less than the preset threshold number;

[0155] A peak filtering threshold level determination module, used to use the highest level as the peak filtering threshold;

[0156] In this case, the peak filtering module is specifically used to filter out the peak values ​​in the peak detection result that are located in the class level that is less than or equal to the highest class level.

[0157] Optionally, the first peak detection result acquisition module is specifically used to: determine whether the pixel value of the current time point of the time domain signal of the characteristic pixel point is greater than the pixel values ​​at the previous time point and the next time point; if so, take the pixel value of the current time point as the peak value.

[0158] Optionally, the device further comprises:

[0159] A pixel conversion module, used for converting the time domain signals of all the pixel points on the heart boundary of the continuous multiple frames of the heart-like images into frequency domain signals;

[0160] The characteristic pixel point determination module is used to determine the pixel point corresponding to the frequency domain signal with the largest amplitude value within the normal heart rate range as the characteristic pixel point according to the amplitude values ​​corresponding to the frequency domain signals of all the pixel points.

[0161] Optionally, the feature pixel determination module is specifically used to:

[0162] Determine the pixel point corresponding to the frequency domain signal which is within the normal heart rate range and has the largest amplitude value as the preliminary feature pixel point;

[0163] Determine the amplitude value corresponding to the frequency domain signal of a preset number of pixel points on the heart boundary within a preset distance from the preliminary pixel point;

[0164] Comparing whether the difference between the amplitude values ​​of the preset number of pixel points and the maximum amplitude value is within a preset difference range;

[0165] If yes, determine the preliminary feature pixel point as the feature pixel point.

[0166] Optionally, the first peak detection result acquisition module is specifically used to: perform a first peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain a preliminary peak detection result; determine whether the preliminary peak detection result is valid, and if valid, use the preliminary peak detection result as the peak detection result.

[0167] Optionally, the first peak detection result acquisition module is also specifically used to: if invalid, perform a second peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image, and determine whether the result of the second peak detection is valid; if valid, use the result of the second peak detection as the peak detection result; wherein the first peak detection and the second peak detection are one and the other of forward peak detection and reverse peak detection.

[0168] Optionally, the device also includes: a validity verification module, used to verify the validity of the peak detection result, specifically including: a frequency value determination submodule, used to determine a group of frequency values ​​including multiple frequency values ​​based on the peak detection result; a frequency result verification submodule, used to obtain the ratio of the first number of the frequency values ​​within the normal heart rate range in the group of frequency values ​​to the total number; a judgment submodule, used to judge whether the ratio is greater than a preset ratio, and if so, judge that the group of frequency values ​​is valid.

[0169] The present invention also provides a heart-like heart rate determination device, the device comprising:

[0170] A peak detection module, used to use the peak filtering device provided above to perform peak detection on the time domain signal of the characteristic pixel points in the continuous multi-frame cardiac-like image to obtain the peak detection result;

[0171] The heart rate determination module is used to determine the heart rate of the type of heart according to the peak detection result.

[0172] Optionally, a heart rate determination module is specifically used to determine the instantaneous heart rate value of the type of heart based on the filtered peak detection result, and display it.

[0173] The present application also provides an electronic device, including:

[0174] Memory for storing computer programs;

[0175] A processor is used to implement the steps of a cardiac-like peak detection method and a cardiac-like heart rate determination method when executing the computer program.

[0176] The present application also provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a cardiac-like peak detection method and a cardiac-like heart rate determination method are implemented.

[0177] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0178] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0179] The above is a detailed introduction to the cardiac-like peak detection, heart rate determination method and related products provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A cardiac-like peak detection method, characterized in that: The method comprises: Performing a first peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain a peak detection result; wherein the time domain signal of the characteristic pixel point is a signal of a pixel value change of the characteristic pixel point over time; Determine a peak filtering threshold value according to the peak detection result, wherein the peak filtering threshold value is a maximum value when the number of peaks in a preset peak range is less than a preset threshold number; According to the peak filtering threshold, the peak detection result is filtered out with the peak value smaller than the peak filtering threshold; Determining the peak filtering threshold according to the peak detection result specifically includes: According to the total value range of the time domain signal of the characteristic pixel point, dividing the total value range into a preset first number of value ranges; Counting the total number of peaks within the value range of a preset second number of consecutive peaks according to the peak detection result; Determine whether the total number of peaks is less than a preset threshold number; If so, a maximum value is determined in the value range of the second number of consecutive preset values ​​as the peak filtering threshold.

2. The method according to claim 1, characterized in that The step of performing a first peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain a peak detection result further includes: Determine whether the ratio of the minimum trough value to the maximum peak value of the time domain signal of the characteristic pixel point is greater than a preset hyperparameter; If yes, it is determined whether there is an abnormal frequency according to the peak detection result, and the peak corresponding to the abnormal frequency is deleted from the peak detection result.

3. The method according to claim 1, characterized in that The preset peak range accounts for 1 / 4 to 1 / 5 of the total value range of the time domain signal of the characteristic pixel point.

4. The method according to claim 1, characterized in that: The step of determining a peak filtering threshold according to the peak detection result further specifically includes: A class level is set for each of the preset first number of value ranges, and the larger the value in the value range, the higher the class level; Counting the total number of peaks within a preset second number of class levels continuously according to the peak detection result; When the total number of wave peaks is less than the preset threshold number, determining the highest class level among a second number of consecutive class levels; Using the highest class level as the peak filtering threshold; The filtering out the peak values ​​smaller than the peak filtering threshold value from the peak detection result according to the peak filtering threshold value specifically includes: The peaks in the peak detection results that are located in the class levels that are less than or equal to the highest class level are filtered out.

5. The method according to claim 1, characterized in that The step of performing peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain the peak detection result specifically includes: Determine whether the pixel value of the time domain signal of the characteristic pixel point at the current time point is greater than the pixel values ​​at the previous time point and the next time point; If yes, the pixel value at the current time point is taken as the peak value.

6. The method according to claim 1, characterized in that The method further comprises: Converting the time domain signals of all the pixel points on the heart boundary of the continuous multiple frames of the heart-like images into frequency domain signals; According to the amplitude values ​​corresponding to the frequency domain signals of all the pixels, the pixel corresponding to the frequency domain signal which is within the normal heart rate range and has the largest amplitude value is determined as the characteristic pixel.

7. The method according to claim 6, characterized in that The step of determining that the pixel point corresponding to the frequency domain signal which is within the normal heart rate range and has the largest amplitude value is the characteristic pixel point specifically includes: Determine the pixel point corresponding to the frequency domain signal which is within the normal heart rate range and has the largest amplitude value as the preliminary feature pixel point; Determine the amplitude value corresponding to the frequency domain signal of a preset number of pixel points on the heart boundary within a preset distance from the preliminary characteristic pixel point; Comparing whether the difference between the amplitude values ​​of the preset number of pixel points and the maximum amplitude value is within a preset difference range; If yes, determine the preliminary feature pixel point as the feature pixel point.

8. The method according to claim 1, characterized in that The first peak detection is performed on the time domain signal of the characteristic pixel point in the heart-like image to obtain the peak detection result, specifically including: Performing a first peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain a preliminary peak detection result; It is determined whether the preliminary peak detection result is valid; if so, the preliminary peak detection result is used as the peak detection result.

9. The method according to claim 8, characterized in that The step of performing peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to obtain the peak detection result further specifically includes: If invalid, performing a second peak detection on the time domain signal of the characteristic pixel point in the cardiac-like image to determine whether the result of the second peak detection is valid; if valid, taking the result of the second peak detection as the peak detection result; The first wave peak detection and the second wave peak detection are one and the other of the forward wave peak detection and the reverse wave peak detection.

10. The method according to claim 9, characterized in that The result of the first peak detection and the result of the second peak detection are both referred to as peak detection results; The following validity verification steps are adopted for the peak detection result: Determine a set of frequency values ​​including a plurality of frequency values ​​based on the peak detection result; Obtaining a ratio of a first number of the frequency values ​​in the normal heart rate range to a total number of the frequency values ​​in the set of frequency values; It is determined whether the proportion is greater than a preset proportion. If so, it is determined that the peak detection result corresponding to the set of frequency values ​​is valid.

11. A method for determining a heart rate similar to a heart, characterized in that: The method comprises: Using the peak detection method provided by any one of claims 1 to 10, peak detection is performed on the time domain signal of the characteristic pixel points in the continuous multi-frame cardiac-like image to obtain the peak detection result; The heart rate of the heart of the type is determined according to the peak detection result.

12. The method according to claim 11, characterized in that Determining the heart rate of the heart-like body according to the peak detection result specifically includes: The instantaneous heart rate value of the heart is determined according to the peak detection result and displayed.

13. A heart-like peak detection device, characterized in that: The device comprises: A first peak detection result acquisition module is used to perform a first peak detection on the time domain signal of the characteristic pixel point in the cardiac image to obtain a peak detection result; wherein the time domain signal of the characteristic pixel point is a signal of the characteristic pixel point changing with time; A peak filtering threshold determination module, used to determine a peak filtering threshold according to the peak detection result, wherein the peak filtering threshold is the maximum peak when the number of peaks within a preset peak range is less than a preset threshold number; A peak filtering module, used to filter out peak values ​​smaller than the peak filtering threshold value according to the peak filtering threshold value in the peak detection result; The peak filtering threshold determination module is specifically used to divide the total value range into a preset first number of value ranges according to the total value range of the time domain signal of the characteristic pixel point; count the total number of peaks within the value range of a preset second number of consecutive values ​​according to the peak detection result; determine whether the total number of peaks is less than a preset threshold number; if so, determine the maximum value in the value range of the preset second number of consecutive values ​​as the peak filtering threshold.

14. A heart rate determination device similar to a heart, characterized in that The device comprises: A peak detection module, configured to perform a first peak detection on a time domain signal of a characteristic pixel point in a cardiac-like image using the peak detection device provided by claim 13; The heart rate determination module is used to determine the heart rate of the type of heart according to the peak detection result.

15. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the cardiac-like peak detection method as described in any one of claims 1 to 10 and the steps of the cardiac-like heart rate determination method as described in claim 11 when executing the computer program.

16. A readable storage medium, characterized in that: The readable storage medium stores a computer program, which, when executed by a processor, implements the cardiac-like peak detection method as described in any one of claims 1 to 10 and the steps of the cardiac-like heart rate determination method as described in claim 11.