Image determination method, device, storage medium and electronic device

By identifying the time-series associated image set and feature vector difference data of the coronary vascular image sequence, and using the classification model to detect key frames in the coronary vascular image sequence, the problems of detection errors and reliance on additional data in the existing technology are solved, and the Accurate detection under single-source single-modal data is suitable for cardiac cycle detection of different patients.

CN115131611BActive Publication Date: 2024-08-23INFERVISION MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210741939.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-08-23
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

The existing technology has errors in detecting the maximum diastolic frame and the maximum systolic frame in the coronary vascular image sequence, and relies on additional data, making it difficult to accurately detect in single-source single-modality data, especially in patients with arrhythmia. difficulty.

Method used

By determining the time-series associated image set and feature vector difference data of the coronary vessel image sequence, the classification model is used to identify key image frames, including frames in which coronary vessels are in a critical state, and the vessel status classification results are adjusted to reduce jumps and generate training data. Collect and perform model training to improve detection accuracy.

Benefits of technology

It realizes the accurate detection of key frames in coronary vascular image sequences relying only on its own data, reduces detection errors, is suitable for cardiac cycle detection of different patients, and improves the universality and accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115131611B
    Figure CN115131611B
Patent Text Reader

Abstract

The present application provides an image determination method, device, storage medium and electronic device, which relate to the field of image processing. The image determination method includes: determining N image sets corresponding to the image sequence of coronary vessels to be detected and associated in time sequence, wherein the image set includes image frames in the image set that are adjacent in time sequence to the image set, and N is a positive integer; determining the feature vector difference data corresponding to each of the N image sets; based on the feature vector difference data corresponding to each of the N image sets, determining the key image frames of the image sequence of coronary vessels to be detected, wherein the key image frames include image frames of coronary vessels in a critical state. Through the scheme in the present application, no additional data support is required, and the key image frames can be determined only by relying on the information of the patient's own coronary vessel image sequence to be detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image determination method, device, storage medium and electronic device. Background Art

[0002] The human heart beats periodically, which can be simply divided into diastole and systole. When the diastole reaches its peak, there is a maximum diastole frame, and when the systole reaches its peak, there is a maximum systole frame. Usually, the calculation of blood vessel diameter and blood vessel contour, as well as blood vessel segmentation and reconstruction, need to be based on the maximum diastole frame or the maximum systole frame.

[0003] In related technologies, the state of blood vessels in a certain image frame is usually judged by calculating the average curvature using the graphics and geometric characteristics of blood vessels in diastole or systole. On the one hand, such methods require distributed calculations, gradually extracting the skeleton of the blood vessels and calculating the curvature. To a certain extent, they rely on the accuracy of blood vessel segmentation and extraction of the blood vessel skeleton. The process is very complicated. On the other hand, due to the difference in viewing angles of coronary vascular images, they cannot fully follow the rule that the curvature is greater during contraction, which results in large errors in the calculation results. Summary of the invention

[0004] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide an image determination method, device, storage medium and electronic device.

[0005] In a first aspect, an embodiment of the present application provides an image determination method, including: determining N image sets corresponding to a coronary artery image sequence to be detected and associated in time sequence, wherein the image set includes image frames in an image set that is temporally adjacent to the image set, and N is a positive integer; determining feature vector difference data corresponding to each of the N image sets; and determining key image frames of the coronary artery image sequence to be detected based on the feature vector difference data corresponding to each of the N image sets, wherein the key image frames include image frames in which the coronary artery is in a critical state.

[0006] In combination with the first aspect, in certain implementations of the first aspect, based on the feature vector difference data corresponding to each of the N image sets, determining the key image frame of the coronary artery image sequence to be detected includes: using a classification model to determine the vascular state classification results of each of the N image sets based on the feature vector difference data corresponding to each of the N image sets; and determining the key image frame based on the vascular state classification results of each of the N image sets.

[0007] In combination with the first aspect, in certain implementations of the first aspect, before determining the key image frame based on the vascular state classification results of each of the N image sets, it also includes: if it is determined based on the vascular state classification results of each of the N image sets that there is a result jump image set in the N image sets, then the vascular state classification result of the result jump image set is adjusted so that the vascular state classification result of the result jump image set is the same as the vascular state classification result of the adjacent image set corresponding to the result jump image set, wherein the result jump image set includes an image set whose vascular state classification results are different from those of the adjacent image sets.

[0008] In combination with the first aspect, in certain implementations of the first aspect, before using the classification model to determine the vascular status classification results of each of the N image sets based on the feature vector difference data corresponding to each of the N image sets, it also includes: determining the vascular status label information of each of the coronary vascular sample image sequence and the sample image frames included in the coronary vascular sample image sequence; generating a training data set based on the vascular status label information of each of the sample image frames included in the coronary vascular sample image sequence, wherein the training data set includes at least one sample image set, the sample image set includes two sample image frames, and the vascular status label information of the sample image set is determined based on the vascular status label information of the sample image frame that is later in time sequence among the two sample image frames; and performing model training based on the training data set to obtain a classification model.

[0009] In combination with the first aspect, in certain implementations of the first aspect, each image set contains two image frames, and the feature vector difference data corresponding to each of the N image sets is determined, including: for each image set in the N image sets, determining the feature vector data corresponding to each of the two image frames contained in the image set; and performing a subtraction operation on the feature vector data corresponding to each of the two image frames to obtain the feature vector difference data corresponding to the image set.

[0010] In combination with the first aspect, in certain implementations of the first aspect, each image set includes two image frames, and N image sets corresponding to the coronary artery image sequence to be detected and time-related are determined, including: determining the starting image frame of the image set based on the coronary artery image sequence to be detected; determining the first image set based on the starting image frame and a preset interval frame number; determining the second image set based on the image frames with a later time sequence and the preset interval frame number in the first image set; and determining the third image set to the Nth image set in sequence according to the method for determining the second image set based on the image frames with a later time sequence and the preset interval frame number in the second image set.

[0011] In combination with the first aspect, in certain implementations of the first aspect, the coronary vessel image sequence to be detected includes a coronary DSA image sequence to be detected.

[0012] In a second aspect, an embodiment of the present application provides a method for determining a cardiac cycle, comprising: determining a key image frame of a target coronary artery image sequence based on the image determination method described in the first aspect; and determining the cardiac cycle of the target coronary artery image sequence based on timing data of the key image frame in the target coronary artery image sequence.

[0013] In a third aspect, an embodiment of the present application provides an image determination device, comprising: a first determination module, used to determine N image sets corresponding to a coronary vessel image sequence to be detected and associated in time sequence, wherein the image set includes image frames in an image set that is temporally adjacent to the image set, and N is a positive integer; a second determination module, used to determine feature vector difference data corresponding to each of the N image sets; and a third determination module, used to determine key image frames of the coronary vessel image sequence to be detected based on the feature vector difference data corresponding to each of the N image sets, wherein the key image frames include image frames in which the coronary vessels are in a critical state.

[0014] In a fourth aspect, an embodiment of the present application provides a cardiac cycle determination device, comprising: a fourth determination module, used to determine the key image frame of the target coronary artery image sequence based on the image determination method described in the first aspect; a fifth determination module, used to determine the cardiac cycle of the target coronary artery image sequence based on the timing data of the key image frame in the target coronary artery image sequence.

[0015] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program for executing the methods described in the first and second aspects.

[0016] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising: a processor; a memory for storing processor executable instructions; the processor is used to execute the methods described in the first aspect and the second aspect.

[0017] The image determination method provided in the embodiment of the present application first determines the N image sets that are time-series-related corresponding to the coronary vascular image sequence to be detected, and then determines the key image frames of the coronary vascular image sequence to be detected based on the feature vector difference data corresponding to each of the N image sets. Through the scheme in the embodiment of the present application, it is possible to obtain the required key image frames only by relying on the information of the coronary vascular image sequence to be detected itself, that is, the feature vector difference data corresponding to the N image sets in the coronary vascular image sequence to be detected, without the support of additional data. This scheme can be applied to various scenarios such as coronary blood flow fraction calculation and coronary vessel segmentation, and has high practical value. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0019] Figure 1 Shown is a schematic diagram of a scenario applicable to an embodiment of the present application.

[0020] Figure 2 Shown is a flow chart of an image determination method provided by an exemplary embodiment of the present application.

[0021] Figure 3 Shown is a key frame image for determining a sequence of coronary vessel images to be detected provided by an exemplary embodiment of the present application.

[0022] Figure 4 Shown is a schematic diagram of a process for determining key frames of a sequence of coronary vessel images to be detected provided by another exemplary embodiment of the present application.

[0023] Figure 5 Shown is a schematic diagram of a process for determining key frames of a sequence of coronary vessel images to be detected provided by another exemplary embodiment of the present application.

[0024] Figure 6 The figure is a schematic diagram of a process of determining feature vector difference data corresponding to each of N image sets provided by an exemplary embodiment of the present application.

[0025] Figure 7 It is a schematic diagram of a flow chart of determining N image sets that are time-sequentially associated and correspond to a coronary vessel image sequence to be detected, provided by an exemplary embodiment of the present application.

[0026] Figure 8 Shown is a schematic diagram of a process of determining key image frames using a classification model provided by an exemplary embodiment of the present application.

[0027] Fig. 9 Shown is a flow chart of a cardiac cycle determination method provided by an exemplary embodiment of the present application.

[0028] Fig.10 Shown is a schematic structural diagram of an image determination device provided by an exemplary embodiment of the present application.

[0029] Fig.11 Shown is a schematic structural diagram of a cardiac cycle determination device provided by an exemplary embodiment of the present application.

[0030] Fig.12Shown is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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.

[0032] The basic principle of coronary digital subtraction angiography (DSA) is to input the X-ray images taken before and after the injection of contrast agent into a computer after digital processing, and obtain clearer vascular images through subtraction, enhancement and re-imaging. Coronary DSA images have the advantages of high resolution, short examination time, small amount of contrast agent, low concentration, significantly reduced X-ray absorption by patients, and film saving. They are of great significance in the clinical diagnosis of vascular diseases. The coronary DSA image sequence is composed of several continuous image frames, generally including the initial state of the cardiovascular system, the injection and filling process of the contrast agent, and the diffusion and disappearance process of the contrast agent.

[0033] In addition, in practical applications, if downstream tasks such as vascular three-dimensional reconstruction and quantitative blood flow fraction calculation are required based on coronary DSA image sequences, it is usually necessary to refer to coronary DSA image sequences at no less than two angles. At this time, it is necessary to determine the maximum systolic frame and maximum diastolic frame in the coronary DSA image sequence and calibrate the cardiac cycle of different coronary DSA image sequences.

[0034] The difficulty in detecting key frames of coronary DSA image sequences lies in the complexity and diversity of coronary artery shapes, and the large differences in the amplitude and frequency of heartbeats of different patients. Therefore, the cardiovascular morphology that reaches maximum contraction in one patient may still be in diastole in another patient. In addition, since some patients have pathological cardiac cycle manifestations, their heart beat patterns have irregular heartbeats, which further increases the difficulty of key frame detection.

[0035] Another method of extracting the maximum diastolic frame and the maximum systolic frame based on the electrocardiogram has a higher accuracy, but due to the difficulty in obtaining the source data, it is necessary to obtain additional information from the electrocardiograph, which causes great difficulties in the processing of single-source single-modality data. Therefore, it is necessary to find a convenient, accurate and fast method to detect the maximum diastolic frame and the maximum systolic frame by referring only to the coronary DSA image sequence.

[0036] Figure 1The figure shows a schematic diagram of a scenario applicable to the embodiment of the present application. The scenario includes an image acquisition device 110 and a computer device 120, and there is a communication connection relationship between the computer device 120 and the image acquisition device 110.

[0037] Specifically, the image acquisition device 110 is used to acquire a sequence of coronary vessel images to be detected. The image acquisition device 110 can be a CT scanner, an X-ray machine, or other equipment with image acquisition function. This application does not specifically limit the structure of the image acquisition device 110.

[0038] The computer device 120 is used to receive the sequence of coronary vascular images to be detected acquired by the image acquisition device 110. Based on the sequence of coronary vascular images to be detected, the corresponding N image sets that are time-sequentially associated are determined, and then the feature vector difference data corresponding to each of the N image sets is determined. The computer device 120 can be a general-purpose computer or a computer device composed of a dedicated integrated circuit, which is not limited in this application. For example, the computer device 120 can be a mobile terminal device such as a tablet computer, or a personal computer, and the number of computer devices 120 can be one or more, and their types can be the same or different. The embodiment of this application does not limit the number and type of computer devices 120. The computer device 120 can determine the key frame image of the sequence of coronary vascular images to be detected based on the feature vector difference data corresponding to each of the N image sets.

[0039] Figure 2 FIG. 2 is a flow chart of an image determination method provided by an exemplary embodiment of the present application. Figure 2 As shown, the image determination method provided in the embodiment of the present application includes the following steps.

[0040] Step S210, determining N image sets that are time-sequentially associated and correspond to the coronary vessel image sequence to be detected.

[0041] Specifically, the coronary vessel image sequence to be detected may be a coronary DSA image sequence, and the image set includes image frames in image sets that are temporally adjacent to the image set, and N is a positive integer. Temporal association means that the image frames included in two adjacent image sets in the N image sets have a temporal correlation relationship.

[0042] For example, the image sequence of the coronary vessels to be detected includes M consecutive image frames, which are sequentially called the first image frame, the second image frame, ..., the (M-1)th image frame, and the Mth image frame in time sequence, and the N image sets are sequentially called the first image set, the second image set, ..., the (N-1)th image set, and the Nth image set in time sequence. Then the first image set includes the first image frame and the second image frame, the second image set includes the second image frame and the third image frame, the (N-1)th image set includes the (M-2)th image frame and the (M-1)th image frame, and the Nth image set includes the (M-1)th image frame and the Mth image frame. It can be seen that the image frames contained in each of the N image sets associated with time sequence are from front to back in time sequence, and the image set includes the image frames in the image set adjacent to the image set that are earlier in time sequence and later in time sequence.

[0043] It should be noted that the embodiment of the present application only lists a method for determining an image set based on adjacent image frames. Those skilled in the art may also select two image frames separated by n frames to form an image set, wherein the value of n shall be selected based on the criterion of being able to accurately detect the key frames of the coronary vessel image sequence to be detected. For example, two image frames separated by two frames may be selected to form an image set, such as the first image set includes the first image frame and the third image frame, the second image set includes the third image frame and the fifth image frame, and so on.

[0044] Step S220, determining the feature vector difference data corresponding to each of the N image sets.

[0045] The feature vector difference data corresponding to the image set is the feature vector difference data between two image frames included in the image set.

[0046] Step S230 , determining the key image frames of the coronary vessel image sequence to be detected based on the feature vector difference data corresponding to each of the N image sets.

[0047] Specifically, the key image frames include image frames in which the coronary arteries are in a critical state. Exemplarily, the image frames in a critical state refer to the image frames that are the last in the sequence of continuous diastolic states and the image frames that are the first in the sequence of continuous systolic states during the process of the coronary arteries changing from a continuous diastolic state to a continuous systolic state. For another example, the image frames in a critical state refer to the image frames that are the last in the sequence of systolic states and the first in the sequence of continuous diastolic states during the process of the coronary arteries changing from a continuous systolic state to a continuous diastolic state. Further, the image frames in which the coronary arteries are in a critical state include the coronary artery maximum diastolic frames and the coronary artery maximum systolic frames.

[0048] The image determination method provided in the embodiment of the present application first determines the N image sets that are time-series-related corresponding to the coronary vascular image sequence to be detected, and then determines the key image frames of the coronary vascular image sequence to be detected based on the feature vector difference data corresponding to each of the N image sets. Through the scheme in the embodiment of the present application, it is possible to obtain the required key image frames only by relying on the information of the coronary vascular image sequence to be detected itself, that is, the feature vector difference data corresponding to the N image sets in the coronary vascular image sequence to be detected, without the need for additional data support. This scheme can be applied to various scenarios such as coronary blood flow fraction calculation and coronary vessel segmentation, and has high practical value.

[0049] Figure 3 The key frame image for determining the sequence of coronary artery images to be detected provided by an exemplary embodiment of the present application is shown. Figure 2 Based on the embodiment shown, Figure 3 The embodiment shown is described below in detail. Figure 3 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0050] like Figure 3 As shown, based on the feature vector difference data corresponding to each of the N image sets, determining the key image frame of the coronary vessel image sequence to be detected includes the following steps.

[0051] Step S234 , using the classification model, based on the feature vector difference data corresponding to each of the N image sets, the vascular status classification results of each of the N image sets are determined.

[0052] Specifically, each image set includes two image frames, and the state classification result of an image frame that is later in time sequence is generally used to represent the blood vessel state classification result of the image set where the image frame belongs.

[0053] According to the preset difference threshold, the relationship between the feature vector difference data corresponding to the image set and the preset difference threshold is determined. If the feature vector difference data corresponding to the image set is greater than the difference threshold, it is considered that the blood vessel classification results between the two image frames in the image set are different. According to the blood vessel state classification results of the image frames with an earlier time sequence in the image set, the blood vessel state classification results of the image frames with a later time sequence in the image set are determined, that is, the blood vessel state classification results of the image set where the image frames with a later time sequence are located are determined.

[0054] Step S237, determining a key image frame based on the blood vessel status classification results of each of the N image sets.

[0055] Specifically, based on the vascular status classification results of each of the N image sets, if the image set with the continuous vascular status classification results being in diastole is converted to the image set with the continuous vascular status classification results being in contraction, the maximum diastole frame, i.e., the key frame, is determined based on the image set with the continuous vascular status classification results being in diastole and the last image set in the time sequence. If the image set with the continuous vascular status classification results being in contraction is converted to the image set with the continuous vascular status classification results being in diastole, the maximum contraction frame, i.e., the key image frame, is determined based on the image set with the continuous vascular status classification results being in contraction and the last image set in the time sequence.

[0056] Exemplarily, Table 1 shows an exemplary vascular state classification result of N image sets. As shown in Table 1, N is equal to 154, the number represents the temporal position of the current image set in the N image sets, 1 in the vascular state classification result represents that the current image set is in diastole, and 0 in the vascular state classification result represents that the current image set is in contraction. It can be seen from Table 1 that the image sets numbered 1 to 80 are all in diastole, and the image sets numbered 81 to 151 are all in contraction, then the image frame with a later temporal sequence included in the image set numbered 80 is the maximum diastole frame, and the image frame with a later temporal sequence included in the image set numbered 151 is the maximum contraction frame.

[0057] Table 1. Vascular status classification results of N image sets

[0058] serial number 1 2 …… 78 79 80 81 82 Vascular status classification results 1 1 1 1 1 1 0 0 serial number 83 84 85 …… 151 152 153 154 Vascular status classification results 0 0 0 0 0 1 1 1

[0059] In the embodiment of the present application, firstly, the classification model can be used to conveniently and quickly determine the classification results of the vascular status corresponding to each of the N image sets. Secondly, this scheme is based on the feature vector difference data corresponding to each of the N image sets to determine the classification results of the vascular status of each of the N image sets. This scheme is based on the information of the coronary artery image sequence to be detected itself, and can achieve the coronary artery image sequence to be detected for different patients, and obtain the unique key frame image of the patient, that is, this scheme is universal.

[0060] Figure 4 FIG. 1 is a flow chart of determining key frames of a coronary vessel image sequence to be detected provided by another exemplary embodiment of the present application. Figure 3 Based on the embodiment shown, Figure 4 The embodiment shown is described below in detail. Figure 4 The embodiment shown and Figure 3 The differences and similarities of the illustrated embodiments are not described in detail.

[0061] like Figure 4 As shown, before determining the key image frame based on the vascular status classification results of each of the N image sets, the following steps are also included.

[0062] Step S235 , determining whether there is a result jump image set in the blood vessel status classification results corresponding to the N image sets.

[0063] Exemplarily, the result jump image set includes an image set whose blood vessel state classification results are different from those of adjacent image sets.

[0064] Step S236 , adjusting the blood vessel state classification result of the result jump image set so that the blood vessel state classification result of the result jump image set is the same as the blood vessel state classification result of the adjacent image set corresponding to the result jump image set.

[0065] Specifically, Table 2 shows another exemplary vascular status classification result of N image sets. As shown in Table 2, the vascular status classification result of the image set No. 79 is 0, while the vascular status classification results of the image sets No. 78 and No. 80 are 1, and the image set No. 79 is a result jump image set. At this time, the vascular status classification result of the image set No. 79 needs to be adjusted to 1. In addition, referring to the state classification result of the image set No. 121 is 1, while the vascular status classification results of the image sets No. 120 and No. 122 are 0, at this time, the vascular status classification result of the image set No. 121 needs to be modified to 0.

[0066] Table 2 Vascular status classification results of N image sets

[0067] serial number 1 2 …… 78 79 80 …… 90 Vascular status classification results 1 1 1 1 0 1 1 1 serial number 91 …… 120 121 122 …… 171 172 Vascular status classification results 0 0 0 1 0 0 0 0

[0068] If an isolated image set in a contraction state suddenly appears among several consecutive image sets in a diastolic state, or an isolated image set in a diastolic state suddenly appears among several image sets in a contraction state, and it is obvious that the patient cannot complete the diastole or the contraction period within the time of one image set, the solution in this embodiment can overcome the defects in the vascular state classification results of the image set and improve the detection accuracy of the key frames.

[0069] Figure 5 FIG. 1 is a flow chart of determining key frames of a sequence of coronary artery images to be detected provided by another exemplary embodiment of the present application. Figure 3 Based on the embodiment shown, Figure 5 The embodiment shown is described below in detail. Figure 5 The embodiment shown and Figure 3 The differences and similarities of the illustrated embodiments are not described in detail.

[0070] like Figure 5 As shown, before using the classification model to determine the vascular status classification results of each of the N image sets based on the feature vector difference data corresponding to each of the N image sets, the following steps are also included.

[0071] Step S231 : determining the coronary artery sample image sequence and the blood vessel state label information of each of the sample image frames included in the coronary artery sample image sequence.

[0072] Specifically, real coronary DSA imaging data can be collected from the hospital as the coronary vascular sample image sequence, and after strict desensitization processing, an experienced annotation team will select the coronary vascular sample image sequence with clear imaging and obvious blood vessels to annotate the vascular contours, thereby obtaining the coronary vascular sample image sequence and the vascular status label information of the sample image frames corresponding to the coronary vascular sample image sequence.

[0073] Step S232: Generate a training data set based on the vascular status label information of each sample image frame included in the coronary vessel sample image sequence.

[0074] Exemplarily, the training data set includes at least one sample image set, the sample image set includes two sample image frames, and the vascular state label information of the sample image set is determined based on the vascular state label information of the sample image frame that is later in time sequence among the two sample image frames.

[0075] For example, all image frames in the coronary artery sample image sequence can be divided into two categories, namely, contraction state and relaxation state. The image frames in the contraction state are marked as 0, and the image frames in the relaxation state are marked as 1. Among them, the image frame in the contraction state means that the image frame and the previous image frame of the image frame are changing in the contraction direction in time sequence, while the image frame in the relaxation state means that the image frame and the previous image frame adjacent to the image frame are changing in the relaxation direction. Based on this marking principle, in a complete coronary artery sample image sequence. The image frame whose mark changes from 0 to 1 is the maximum contraction frame, and the image frame whose mark changes from 1 to 0 is the maximum relaxation frame.

[0076] Step S233: Perform model training based on the training data set to obtain the classification model.

[0077] Each time, a sample image set is randomly selected from the training data set, and the sample image set and the annotation results corresponding to the sample image set are input into the model for training until the preset conditions are met to obtain a classification model.

[0078] Through the technical solution in this embodiment, a training data set for a classification model can be obtained, so that a required classification model can be obtained according to the training data set.

[0079] In addition, in an exemplary embodiment of the present application, the classification model includes a Dropout layer of a first probability and a Dropout layer of a second probability. Specifically, the classification model includes a convolution layer, a Relu layer and a normalization layer. For the Relu layer and the normalization layer, a Dropout layer of a first probability and a Dropout layer of a second probability are added respectively, and the first probability and the second probability can be the same or different, for example, the first probability and the second probability are both equal to 0.5, or the first probability is equal to 0.5 and the second probability is equal to 0.4.

[0080] Through the solution in this embodiment, the overfitting risk of the classification model can be reduced and the classification accuracy of the classification model can be further improved.

[0081] Figure 6 The figure shows a flow chart of determining feature vector difference data corresponding to each of N image sets provided by an exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 6 The embodiment shown is described below in detail. Figure 6 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0082] like Figure 6 As shown, each image set includes two image frames, and determining the feature vector difference data corresponding to each of the N image sets includes the following steps.

[0083] Step S221 : for each image set in the N image sets, determining feature vector data corresponding to two image frames contained in the image set.

[0084] Specifically, feature extraction of image frames is performed based on the classification model. The feature extraction network of the classification model can be replaced with any common feature extraction architecture, such as Resnet network, Alexnet network, or other manually designed networks.

[0085] In the classification model, two image frames in the input image set are subjected to feature extraction operations to obtain vectors f(X) and f(Y) respectively.

[0086] Step S222, performing a subtraction operation on the feature vector data corresponding to each of the two image frames to obtain feature vector difference data corresponding to the image set.

[0087] Specifically, through V = f(X) - f(Y), the feature vector difference data V after subtraction is obtained, and the feature vector difference data V is compressed and classified. Among them, the classification layer in the classification model can be manually designed according to actual needs. In the experiment, a feasible classification layer consists of two Relu activation layers and three Linear layers.

[0088] In this embodiment, by determining the feature vector of each image frame in the image set and then performing a subtraction operation on the feature vectors of two image frames in the image set, the feature vector difference data corresponding to the image set can be determined simply and conveniently.

[0089] Figure 7 FIG. 1 is a flow chart of determining N image sets that are time-sequentially associated and correspond to a coronary vessel image sequence to be detected, provided by an exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 7 The embodiment shown is described below in detail. Figure 7 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0090] like Figure 7 As shown, each image set includes two image frames, and determining N image sets that are time-sequentially associated and correspond to the coronary vessel image sequence to be detected includes the following steps.

[0091] Step S211 : determining a starting image frame of an image set based on the image sequence of the coronary artery to be detected.

[0092] First, the coronary artery image sequence to be detected is preprocessed. The feasible preprocessing methods include but are not limited to image format conversion, image size normalization, image denoising and image enhancement, so as to obtain the coronary artery image sequence to be detected with good contrast and clear vascular texture.

[0093] For example, the DCM file data is converted into an image format. The formats that can be saved include but are not limited to JPG, PNG, etc. The image is normalized in size. The normalized size can be determined according to the design of the classification model. For example, one feasible normalized size is 100*100 pixels.

[0094] Specifically, the M image frames of the coronary vessel image sequence to be detected can be sequentially referred to as the first image frame, the second image frame, ..., the (M-1)th image frame, and the Mth image frame in chronological order. Those skilled in the art can select the first image frame among the M image frames as the starting image frame, and also select the second image frame among the M image frames as the starting image frame, and can also select the tenth image frame among the M image frames as the starting image frame. The embodiment of the present application does not limit the specific chronological data of the starting image frame among the M image frames.

[0095] Step S212: determining a first image set based on a starting image frame and a preset interval frame number.

[0096] The first image set is the image set that is the earliest in time sequence among the N image sets. The N image sets are sequentially referred to as the first image set, the second image set, ..., the Nth image set in time sequence.

[0097] Specifically, the starting image frame is the g-th image frame, and the preset interval number of frames between two image frames included in each image set is b, then the two image frames included in the first image set are the g-th image frame and the (g+b)-th image frame.

[0098] For example, the third image frame is selected as the starting image frame, and the interval number of two image frames included in each image set is 5, then the two image frames included in the first image set are the third image frame and the eighth image frame.

[0099] Step S213: determining a second image set based on the image frames in the first image set that are later in time sequence and a preset number of interval frames.

[0100] Specifically, following the example in step S212, after the first image set is determined, the two image frames included in the second image set are the (g+b)th image frame and the (g+2b)th image frame.

[0101] Step S214 , based on the image frames in the second image set that are later in time sequence and the preset interval frame number, the third image set to the Nth image set are determined in sequence according to the determination method of the second image set.

[0102] Specifically, the two image frames included in the third image set are the (g+2b)th image frame and the (g+3b)th image frame, ..., and the two image frames included in the Nth image set are the (g+(N-1)*b)th image frame and the (g+N*b)th image frame.

[0103] Through the scheme in this embodiment, N image sets for detecting key frames can be determined simply and quickly, and there is a temporal correlation relationship between the N image sets, and the N image sets can be connected in series in time to detect the maximum diastolic frame and the maximum systolic frame in the N image sets. In addition, the two image frames in each image set can be adjacent, or separated by one frame, two frames, or even n frames, so as to reduce the amount of calculation in the process of determining the key frames by the computer.

[0104] In an exemplary embodiment of the present application, the coronary vessel image sequence to be detected includes a coronary DSA image sequence to be detected.

[0105] Specifically, the key image frame of the coronary artery DSA image sequence to be detected is determined by the image determination method mentioned in any embodiment of the present application.

[0106] Figure 8 FIG. 2 is a flow chart of determining key image frames using a classification model provided by an exemplary embodiment of the present application. Figure 8As shown, the coronary vessel image sequence to be detected is input into the classification model, and the coronary vessel image sequence to be detected is first preprocessed, and then enters the classification network to obtain the vascular state classification results of each of the N image sets corresponding to the coronary vessel image sequence to be detected. Thereafter, the N vascular state classification results corresponding to the N image sets are post-processed, that is, the vascular state classification results of the result jump image set are adjusted to be the same as the vascular state classification results of the adjacent image set corresponding to the result jump image set. Thereafter, the key image frame is determined according to the vascular state classification results of each of the N image sets.

[0107] Fig. 9 FIG. 2 is a flow chart of a cardiac cycle determination method provided by an exemplary embodiment of the present application. Fig. 9 As shown, the cardiac cycle determination method provided in the embodiment of the present application includes the following steps.

[0108] Step S910, determining a key image frame of a target coronary vessel image sequence.

[0109] Specifically, based on the image determination method described in any embodiment of the present application, the key image frames of the target coronary vessel image sequence are determined.

[0110] Step S920, determining the cardiac cycle of the target coronary artery image sequence based on the timing data of the key image frame in the target coronary artery image sequence.

[0111] For example, the target coronary artery image sequence includes 300 image frames, the timing data of the maximum diastolic frame in the target coronary artery image sequence is 100, and the timing data of the maximum systolic frame in the target coronary artery image sequence is 200. Based on the time interval between two adjacent image frames and the difference in timing data between the maximum diastolic frame and the maximum systolic frame, the cardiac cycle of the target coronary artery image sequence is determined.

[0112] Through the technical solution in the embodiments of the present application, the cardiac cycle of a patient can be simply and accurately determined based only on the patient's own coronary artery image sequence, so as to perform quantitative blood flow fraction calculation and subsequent coronary artery related disease diagnosis based on the patient's cardiac cycle.

[0113] Combination of the above Figures 2 to 9 , describes the method embodiment of the present application in detail, and the following is combined with Fig.10 and Fig.11 , describes the device embodiment of the present application in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0114] Fig.10FIG. 1 is a schematic diagram of the structure of an image determination device provided by an exemplary embodiment of the present application. Fig.10 As shown, the image determination device provided in the embodiment of the present application includes:

[0115] The first determination module 1010 is used to determine N image sets corresponding to the coronary vessel image sequence to be detected and associated in time sequence, wherein the image set includes image frames in the image set that are adjacent in time sequence to the image set, and N is a positive integer;

[0116] The second determination module 1020 is used to determine the feature vector difference data corresponding to each of the N image sets;

[0117] The third determination module 1030 is used to determine the key image frames of the coronary vessel image sequence to be detected based on the feature vector difference data corresponding to each of the N image sets, wherein the key image frames include image frames in which the coronary vessels are in a critical state.

[0118] In one embodiment of the present application, the third determination module 1030 is also used to use the classification model to determine the vascular status classification results of each of the N image sets based on the feature vector difference data corresponding to each of the N image sets; and determine the key image frame based on the vascular status classification results of each of the N image sets.

[0119] In one embodiment of the present application, the third determination module 1030 is further used to adjust the vascular state classification result of the result jump image set if it is determined that there is a result jump image set in the N image sets based on the vascular state classification results of each of the N image sets, so that the vascular state classification result of the result jump image set is the same as the vascular state classification result of the adjacent image set corresponding to the result jump image set, wherein the result jump image set includes an image set whose vascular state classification result is different from that of the adjacent image sets.

[0120] In one embodiment of the present application, the third determination module 1030 is further used to determine the vascular status label information of each of the coronary artery sample image sequence and the sample image frames included in the coronary artery sample image sequence; generate a training data set based on the vascular status label information of each of the sample image frames included in the coronary artery sample image sequence, wherein the training data set includes at least one sample image set, the sample image set includes two sample image frames, and the vascular status label information of the sample image set is determined based on the vascular status label information of the sample image frame that is later in time sequence among the two sample image frames; perform model training based on the training data set to obtain the classification model.

[0121] In one embodiment of the present application, the second determination module 1020 is also used to determine, for each image set in the N image sets, the feature vector data corresponding to each of the two image frames contained in the image set; and perform a subtraction operation on the feature vector data corresponding to each of the two image frames to obtain the feature vector difference data corresponding to the image set.

[0122] In one embodiment of the present application, the first determination module 1010 is also used to determine the starting image frame of the image set based on the coronary artery image sequence to be detected; determine the first image set based on the starting image frame and the preset interval frame number; determine the second image set based on the image frames with a later time sequence in the first image set and the preset interval frame number; determine the third image set to the Nth image set in sequence based on the image frames with a later time sequence in the second image set and the preset interval frame number according to the determination method of the second image set.

[0123] In one embodiment of the present application, the coronary vessel image sequence to be detected includes a coronary DSA image sequence to be detected.

[0124] Fig.11 FIG. 1 is a schematic diagram of the structure of a cardiac cycle determination device provided by an exemplary embodiment of the present application. Fig.11 As shown, the cardiac cycle determination device provided in the embodiment of the present application includes:

[0125] A fourth determination module 1110 is used to determine a key image frame of a target coronary vessel image sequence;

[0126] The fifth determination module 1120 is configured to determine the cardiac cycle of the target coronary vessel image sequence based on the timing data of the key image frame in the target coronary vessel image sequence.

[0127] Below, reference Fig.12 To describe an electronic device according to an embodiment of the present application. Fig.12 Shown is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application.

[0128] like Fig.12 As shown, the electronic device 120 includes one or more processors 1201 and a memory 1202 .

[0129] The processor 1201 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 120 to perform desired functions.

[0130] The memory 1202 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 1201 may run the program instructions to implement the methods of the various embodiments of the present application described above and / or other desired functions. Various contents such as a sequence of coronary vascular images to be detected, N image sets, feature vector difference data corresponding to each of the N image sets, key image frames, etc. may also be stored in the computer-readable storage medium.

[0131] In one example, the electronic device 120 may further include: an input device 1203 and an output device 1204 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0132] The input device 1203 may include, for example, a keyboard, a mouse, etc.

[0133] The output device 1204 can output various information to the outside, including the coronary vessel image sequence to be detected, N image sets, feature vector difference data corresponding to each of the N image sets, key image frames, etc. The output device 1204 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0134] Of course, to simplify, Fig.12 Only some of the components related to the present application in the electronic device 120 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 120 may also include any other appropriate components.

[0135] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present application described above in this specification.

[0136] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0137] In addition, an embodiment of the present application may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enables the processor to execute the steps of the method according to various embodiments of the present application described above in this specification.

[0138] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0139] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0140] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0141] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0142] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. An image determination method, characterized in that: include: Determine N image sets corresponding to the coronary vessel image sequence to be detected and associated in time sequence, wherein the image sets include image frames in image sets that are temporally adjacent to the image set, and N is a positive integer; Determine the feature vector difference data corresponding to each of the N image sets; Determining key image frames of the image sequence of the coronary vessels to be detected based on the feature vector difference data corresponding to each of the N image sets, wherein the key image frames include image frames in which the coronary vessels are in a critical state; The step of determining the key image frame of the coronary vessel image sequence to be detected based on the feature vector difference data corresponding to each of the N image sets includes: Determine the vascular status classification results of each of the N image sets using the classification model based on the feature vector difference data corresponding to each of the N image sets; If it is determined that there is a result jump image set in the N image sets based on the vascular state classification results of each of the N image sets, the vascular state classification result of the result jump image set is adjusted so that the vascular state classification result of the result jump image set is the same as the vascular state classification result of an adjacent image set corresponding to the result jump image set, wherein the result jump image set includes an image set whose vascular state classification results are different from those of adjacent image sets; The key image frame is determined based on the blood vessel status classification results of each of the N image sets.

2. The image determination method according to claim 1, characterized in that: Before determining the vascular status classification results of each of the N image sets based on the feature vector difference data corresponding to each of the N image sets by using the classification model, the method further includes: Determine a coronary blood vessel sample image sequence and blood vessel state label information of each sample image frame included in the coronary blood vessel sample image sequence; Generate a training data set based on the vascular state label information of each sample image frame included in the coronary vessel sample image sequence, wherein the training data set includes at least one sample image set, the sample image set includes two sample image frames, and the vascular state label information of the sample image set is determined based on the vascular state label information of the sample image frame that is later in time sequence among the two sample image frames; Model training is performed based on the training data set to obtain the classification model.

3. The image determination method according to claim 1 or 2, characterized in that: Each of the image sets includes two image frames, and determining the feature vector difference data corresponding to each of the N image sets includes: For each of the N image sets, Determine feature vector data corresponding to each of two image frames included in the image set; A subtraction operation is performed on the feature vector data corresponding to each of the two image frames to obtain feature vector difference data corresponding to the image set.

4. The image determination method according to claim 1 or 2, characterized in that: Each of the image sets includes two image frames, and the N image sets corresponding to the coronary vessel image sequence to be detected and associated in time sequence are determined to include: Determining a starting image frame of an image set based on the coronary vessel image sequence to be detected; Determining a first image set based on the starting image frame and a preset number of interval frames; Determining a second image set based on the image frames in the first image set that are later in time sequence and the preset interval frame number; Based on the image frames in the second image set that are later in time sequence and the preset number of interval frames, the third image set to the Nth image set are determined in sequence according to the method for determining the second image set.

5. The image determination method according to claim 1 or 2, characterized in that: The coronary vessel image sequence to be detected includes a coronary DSA image sequence to be detected.

6. A method for determining a cardiac cycle, characterized in that: include: Determine the key image frame of the target coronary vessel image sequence based on the image determination method according to any one of claims 1 to 5; Based on the time series data of the key image frame in the target coronary vessel image sequence, a cardiac cycle of the target coronary vessel image sequence is determined.

7. An image determination device, characterized in that: include: A first determination module is used to determine N image sets corresponding to the coronary vessel image sequence to be detected and associated in time sequence, wherein the image set includes image frames in an image set that is temporally adjacent to the image set, and N is a positive integer; A second determination module is used to determine the feature vector difference data corresponding to each of the N image sets; A third determination module is used to determine the key image frames of the coronary vessel image sequence to be detected based on the feature vector difference data corresponding to each of the N image sets, wherein the key image frames include image frames in which the coronary vessels are in a critical state; The third determination module is further used to determine, using a classification model, a vascular state classification result of each of the N image sets based on the feature vector difference data corresponding to each of the N image sets; if it is determined that there is a result jump image set in the N image sets based on the vascular state classification results of each of the N image sets, then adjust the vascular state classification result of the result jump image set so that the vascular state classification result of the result jump image set is the same as the vascular state classification result of an adjacent image set corresponding to the result jump image set, wherein the result jump image set includes an image set whose vascular state classification result is different from that of any adjacent image set; and determine the key image frame based on the vascular state classification results of each of the N image sets.

8. A cardiac cycle determination device, characterized in that: include: a fourth determination module, configured to determine a key image frame of a target coronary vessel image sequence based on the image determination method according to any one of claims 1 to 5; A fifth determination module is used to determine the cardiac cycle of the target coronary vessel image sequence based on the timing data of the key image frame in the target coronary vessel image sequence.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 6.

10. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to execute the method according to any one of claims 1 to 6.