Ultrasonic image recognition method, terminal device and storage medium
By obtaining and updating the probability mapping feature map of the ultrasound image, candidate feature points are determined to identify the target area, which solves the error and tedious problems caused by doctors when observing the development of ovarian follicles, and improves the accuracy and efficiency of identification.
Patent Information
- Application Number
- CN202011073633.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-09
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-10-09
AI Technical Summary
In clinical practice, when doctors observe the development of ovaries and follicles through ultrasound, they need to perform frequent manual calculations and measurements, which leads to human errors and cumbersome processes, especially for inexperienced doctors, which affects the accuracy of monitoring.
By obtaining the probability mapping feature map of the ultrasound image, candidate feature points are determined, and the probability mapping feature map is updated based on these feature points to determine the target area, including the ovary and follicles, to improve the accuracy of image recognition.
It improves the recognition accuracy of target areas in ultrasound images, enables doctors to better observe and analyze the development of ovarian follicles, and reduces human errors and the tediousness of manual operations.
Smart Images

Figure CN112184683B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to an ultrasonic image recognition method, terminal equipment and storage medium. Background Art
[0002] At present, in clinical practice, doctors often use ultrasound to observe the size and volume of women's ovaries during the ovulation cycle, as well as the development of follicles, to predict the formation period of mature oocytes, thereby improving the success rate of reproduction. However, in the process of statistical analysis, doctors need to perform a large number of frequent manual operations to calculate the number of follicles, measure the maximum meridian and perpendicular bisector of the follicles, etc., especially in patients treated with drugs. There are generally multiple follicles to be tested, and manual measurement is more cumbersome. Moreover, follicle monitoring is real-time and continuous. The human error introduced by different doctors' manual marking and measurement habits will affect the final monitoring effect. In addition, whether the echo-free structure in the image is a follicle and whether the echo-free structure is only one follicle or two adjacent follicles are all difficulties in manual annotation, especially for doctors with less clinical experience. Summary of the invention
[0003] In view of the deficiencies in the prior art, the technical problem to be solved by the present invention is to provide an ultrasonic image recognition method, a terminal device and a storage medium.
[0004] In order to solve the above problem, the first aspect of the present invention provides a method for recognizing an ultrasonic image, the method for recognizing an ultrasonic image comprising the following steps:
[0005] Obtaining a probability mapping feature map corresponding to the ultrasound image to be identified;
[0006] Determine and obtain a number of candidate feature points corresponding to the ultrasound image based on the probability mapping feature map;
[0007] The probability mapping feature map is updated based on the plurality of candidate feature points, and a target region corresponding to the ultrasound image is determined based on the updated probability mapping feature map, wherein the target region includes an ovary and / or a follicle.
[0008] The ultrasonic image recognition method, wherein the ultrasonic image is a two-dimensional / three-dimensional ultrasonic image, and the ultrasonic image includes follicles and / or ovaries.
[0009] In the ultrasonic image recognition method, the step of obtaining a probability mapping feature graph corresponding to the ultrasonic image to be recognized specifically comprises:
[0010] The ultrasound image is input into a trained segmentation network model, and a probability mapping feature map corresponding to the ultrasound image is determined by the segmentation network model.
[0011] In the ultrasonic image recognition method, the step of determining and acquiring a plurality of candidate feature points corresponding to the ultrasonic image based on the probability mapping feature map specifically comprises:
[0012] Obtaining the confidence of the object category corresponding to each pixel point in the probability map feature map;
[0013] Based on the confidence of the object category corresponding to each pixel point, a number of candidate feature points corresponding to the ultrasound image are determined.
[0014] In the ultrasonic image recognition method, the difference between the confidence of the object category corresponding to each of the plurality of candidate feature points and a preset confidence satisfies a preset condition.
[0015] In the ultrasonic image recognition method, the updating of the probability mapping feature map based on the plurality of candidate feature points specifically comprises:
[0016] Acquire a feature map corresponding to the ultrasound image, wherein the feature map includes image detail information of the ultrasound image;
[0017] Determine the feature vector corresponding to each candidate feature point based on the feature map, and determine the probability vector corresponding to each candidate feature point based on the coarse probability feature map;
[0018] The probability mapping feature map is updated based on the feature vectors and probability vectors corresponding to each candidate feature point.
[0019] In the ultrasonic image recognition method, the updating of the probability mapping feature map based on the feature vector and the probability vector specifically includes:
[0020] Based on the feature vectors and probability vectors corresponding to the candidate feature points, determine the fusion vectors corresponding to the candidate feature points;
[0021] Based on the iterative subdivision algorithm and the fusion vectors corresponding to each candidate feature point, the target probability vector corresponding to each candidate feature point is determined;
[0022] The target probability vector corresponding to each candidate feature point is used to update the probability vector corresponding to each candidate feature point, so as to update the probability mapping feature map.
[0023] In the ultrasonic image recognition method, the image size of the feature map is equal to the image size of the probability mapping feature map.
[0024] The second aspect of this embodiment provides a terminal device, characterized in that the terminal device includes: a memory, a processor, and an ultrasound image recognition program stored in the memory and executable on the processor, and the ultrasound image recognition program, when executed by the processor, implements the steps of any of the ultrasound image recognition methods described above.
[0025] A third aspect of this embodiment provides a computer-readable medium, characterized in that the storage medium stores an ultrasound image recognition program, and when the ultrasound image recognition program is executed by a processor, the steps of any of the ultrasound image recognition methods described above are implemented.
[0026] Beneficial effects: The present invention provides an ultrasonic image recognition method, terminal device and storage medium, the method obtaining a probability mapping feature map corresponding to an ultrasonic image to be recognized; determining a number of candidate feature points corresponding to the ultrasonic image based on the probability mapping feature map; updating the probability mapping feature map based on the number of candidate feature points, and determining a target area corresponding to the ultrasonic image based on the updated probability mapping feature map. The present invention obtains a probability mapping feature map of an ultrasonic image, and based on the probability mapping feature map, determines a number of candidate feature points, and corrects the number of candidate feature points to update the probability mapping feature map, which can improve the accuracy of the target area determined based on the probability mapping feature map, thereby enabling doctors to better observe and analyze the development of ovarian follicles. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a flow chart of a preferred embodiment of the ultrasonic image recognition method of the present invention;
[0028] Figure 2 Schematic diagram of the operating environment of a preferred embodiment of the terminal device of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0030] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0031] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0032] The inventor has found through research that, at present, in clinical practice, doctors often observe the size and volume of women's ovaries during the ovulation cycle, as well as the development of follicles, through ultrasound to predict the formation period of mature oocytes, thereby improving the success rate of reproduction. However, in the process of statistical analysis, doctors need to perform a large number of frequent manual operations to calculate the number of follicles, measure the maximum meridian and perpendicular bisector of the follicles, etc., especially in patients treated with drugs, there are generally multiple follicles to be tested, and manual measurement is more cumbersome. Moreover, follicle monitoring is real-time and continuous, and the human error introduced by different doctors' manual marking and measurement habits will affect the final monitoring effect. In addition, whether the echo-free structure in the image is a follicle and whether the echo-free structure is only one follicle or two adjacent follicles, these are difficulties in manual marking, especially for doctors with less clinical experience.
[0033] In order to solve the above problems, in an embodiment of the present application, a probability mapping feature map corresponding to an ultrasound image to be identified is obtained; based on the probability mapping feature map, several candidate feature points corresponding to the ultrasound image are determined; based on the several candidate feature points, the probability mapping feature map is updated, and based on the updated probability mapping feature map, the target area corresponding to the ultrasound image is determined. The present invention obtains a probability mapping feature map of an ultrasound image, and based on the probability mapping feature map, several candidate feature points are corrected to update the probability mapping feature map, so that the accuracy of the target area determined based on the probability mapping feature map can be improved, so that doctors can better observe and analyze the development of ovarian follicles.
[0034] The application content is further explained below through the description of embodiments in conjunction with the accompanying drawings.
[0035] This embodiment provides a method for recognizing an ultrasound image. The method can be performed by an ultrasound image recognition device. The device can be implemented by software and applied to a terminal device such as an ultrasound device, a smart phone, a tablet computer, or a personal digital assistant. Figure 1 This embodiment provides a method for recognizing an ultrasonic image, the method comprising:
[0036] S10. Obtain a probability mapping feature map corresponding to the ultrasound image to be identified.
[0037] Specifically, the ultrasound image may be acquired through an ultrasound device, may be acquired through an external device and sent to a terminal device that runs the ultrasound image recognition method, or may be stored locally on the terminal device that runs the ultrasound image recognition method. In one implementation of this embodiment, the ultrasound image may be a two-dimensional / three-dimensional ultrasound image, wherein the ultrasound image includes ovaries and / or follicles. It is understandable that the ultrasound image may be a two-dimensional / three-dimensional ultrasound image that includes ovaries and / or follicles.
[0038] The probability mapping feature map is used to reflect the probability of the object category corresponding to each pixel point in the ultrasound image, wherein the object category is included in a plurality of pre-set target categories, and the plurality of target categories are used to mark the object category corresponding to the object in the ultrasound image. It can be understood that the object category corresponding to the target area identified by the ultrasound image is included in the plurality of target categories. For example, the plurality of target categories include a follicle category and an ovary category, and the object category included in the target area is one of the follicle category and the ovary category.
[0039] The element value corresponding to each pixel position in each channel in the probability mapping feature map is a probability value, and the probability value is used to represent the probability that the pixel belongs to the candidate category corresponding to the channel, wherein the candidate category is a category in a category set consisting of several target categories and background categories. Thus, the number of channels of the probability mapping feature map is determined according to several target categories, wherein the number of channels of the probability mapping feature map can be equal to the sum of the number of target categories and the number of backgrounds. For example, if several target categories include ovaries and follicles, then the number of channels of the probability mapping feature map can be 3, the dimension of the probability mapping feature map of a two-dimensional ultrasound image is 3, and the dimension of a three-dimensional image is 4.
[0040] In one implementation of this embodiment, the ultrasonic image recognition method can be applied to a segmentation network model, which is used to identify the target area and object category corresponding to the object in the ultrasonic image, wherein the object category is included in a plurality of target categories. It can be understood that the image recognition model is configured with the plurality of target categories, and the objects in the ultrasonic image are labeled with the plurality of target categories. Based on this, the probability mapping feature map can be obtained through the segmentation network model, and accordingly, the acquisition of the probability mapping feature map corresponding to the ultrasonic image to be identified specifically includes:
[0041] The ultrasound image is input into a trained segmentation network model, and a probability mapping feature map corresponding to the ultrasound image is determined by the segmentation network model.
[0042] Specifically, the segmentation network model is a trained network model, the input item of the segmentation network model is an ultrasound image, and the segmentation network model can obtain a probability mapping feature map corresponding to the ultrasound image. The image size of the probability mapping feature map determined by the segmentation network model may be the same as the image size of the ultrasound image, or may not be the same as the image size of the ultrasound image. When the image size of the probability mapping feature map determined by the segmentation network model is different from the image size of the ultrasound image, the probability mapping feature map can be upsampled (for example, linear interpolation, etc.), and the upsampled probability mapping feature map is used as the probability mapping feature map corresponding to the ultrasound image. In a specific implementation of this embodiment, the image size of the probability mapping feature map determined by the segmentation network model is half of the image size of the ultrasound image. For example, the image size of the ultrasound image is 256*256, and the image size of the probability mapping feature map is 128*128.
[0043] S20. Determine and obtain a number of candidate feature points corresponding to the ultrasound image based on the probability mapping feature map.
[0044] Specifically, each of the plurality of candidate feature points corresponds to a pixel position in the probability mapping feature map, and each of the plurality of candidate feature points corresponds to a different pixel position. For example, the plurality of candidate feature points include candidate feature point a and candidate feature point b, the pixel position corresponding to candidate feature point a is (100, 100, 50), and the pixel position corresponding to the candidate feature point is (200, 200, 100). In addition, each candidate feature point is a probability vector including a plurality of elements, the number of elements included in each probability vector is the same as the number of channels of the probability mapping feature map, and the probability values in each channel corresponding to the pixel position in the plurality of elements correspond one to one, and the corresponding elements and probability values are the same. For example, several candidate feature points of three-dimensional data include candidate feature point a, the pixel position corresponding to candidate feature point a is (100, 100, 50), the number of channels of the probability mapping feature map is 3, and the probability value of channel 0 corresponding to the pixel position (100, 100, 50) in the probability mapping feature map is 0.1, the probability value of channel 1 is 0.2, and the probability value of channel 2 is 0.7. Then the probability vector corresponding to candidate feature point a is (0.1, 0.2, 0.7).
[0045] Further, after determining the probability vector corresponding to each candidate feature point, the object category corresponding to each candidate feature point and the confidence corresponding to the object category can be determined based on the probability vector, wherein the confidence is used to reflect the credibility of the object category corresponding to the candidate feature point, wherein the higher the confidence, the higher the credibility of the object category corresponding to the candidate feature point, and vice versa, the lower the confidence, the lower the credibility of the object category corresponding to the candidate feature point. In an implementation of this embodiment, the confidence can be any value between 0-1, wherein 0-1 includes 0 and 1.
[0046] In an implementation of this embodiment, the determining and acquiring a number of candidate feature points corresponding to the ultrasound image based on the probability mapping feature map specifically includes:
[0047] Obtaining the confidence of the object category corresponding to each pixel point in the probability map feature map;
[0048] Based on the confidence of the object category corresponding to each pixel point, a number of candidate feature points corresponding to the ultrasound image are determined.
[0049] Specifically, the object category is one of several target categories, for example, several categories include ovaries and follicles, and the object category can be ovaries or follicles. The confidence is the degree of credibility of the pixel point being the object category. In addition, after obtaining the confidence of the object category corresponding to each pixel point, several candidate feature points can be selected in the probability mapping feature map based on the confidence. Since the boundary of the ovary and the boundary of the follicle in the ultrasound image, as well as the boundary of the follicle and the boundary of the follicle, overlap, the regional range of the target area will be error. Thus, after selecting several candidate feature points, several candidate feature points can be selected from the boundary points of the target area, or the pixel points whose confidence meets the preset conditions in the target area can be selected as several candidate feature points, and the pixel points whose confidence meets the preset conditions can be selected from the boundary points of the target area as several candidate feature points.
[0050] In an implementation of this embodiment, the difference between the confidence of the object category corresponding to each candidate feature point in the plurality of candidate feature points and the preset confidence meets a preset condition, wherein the preset confidence may be a preset measure for selecting candidate feature points, for example, the preset confidence is 0.5, 0.6, etc. The preset condition may be that the difference between the confidence and the preset confidence is less than the preset difference, for example, 0.05, etc. Of course, in practical applications, the plurality of candidate feature points may also be selected in other ways, for example, first obtaining the boundary pixel points of the target area, randomly selecting a plurality of candidate feature points from the boundary pixel points, and the difference in the number of boundary points between any two groups of adjacent two pixel points in the plurality of candidate feature points meets the preset requirement, so that the uniformity of the candidate feature points can be improved, thereby improving the accuracy of determining the target area points based on the corrected probability mapping feature map, wherein the preset requirement may be that the difference in the number of boundary points between any two groups of adjacent two pixel points is less than a preset number, for example, 3, 4, etc.
[0051] S30. Update the probability mapping feature map based on the plurality of candidate feature points, and determine a target region corresponding to the ultrasound image based on the updated probability mapping feature map, wherein the target region includes an ovary and / or a follicle.
[0052] Specifically, the updating of the probability mapping feature map based on the several candidate feature points refers to updating the object categories and the confidences of the object categories corresponding to the several candidate feature points, and replacing the several candidate feature points in the probability mapping map with the updated several candidate feature points to update the probability mapping feature map. Therefore, when the probability mapping feature map is updated based on the several candidate feature points, each candidate feature point needs to be updated. Accordingly, the updating of the probability mapping feature map based on the several candidate feature points specifically includes:
[0053] Acquire a feature map corresponding to the ultrasound image;
[0054] Determine the feature vector corresponding to each candidate feature point based on the feature map, and determine the probability vector corresponding to each candidate feature point based on the coarse probability feature map;
[0055] The probability mapping feature map is updated based on the feature vectors and probability vectors corresponding to each candidate feature point.
[0056] Specifically, the feature map includes image detail information of the ultrasound image, and the feature map can be determined by a segmentation network model. That is, after the ultrasound image is input into the segmentation network model, the segmentation network model can determine the feature map corresponding to the ultrasound image. In one implementation of this embodiment, the feature vector can be composed of features extracted from one layer of the feature map, and can also be obtained by connecting several pyramid features through a pyramid network. In a specific implementation of this embodiment, the network layer corresponding to the feature map is adjacent to the network layer corresponding to the probability mapping feature map, and the network layer corresponding to the feature map is located before the network layer corresponding to the probability mapping feature map, so that the feature map can learn the image detail information.
[0057] The feature vector can be composed of element values of pixel positions in each channel of the feature map based on the feature map. The image size of the feature map may be the same as the image size of the ultrasound image, or it may not be the same as the image size of the ultrasound image. For example, the image size of the feature map is half the image size of the ultrasound image. In addition, when the image size of the feature map is different from the image size of the ultrasound image, the feature map can be upsampled (for example, linear interpolation, etc.) to make the image size of the feature map the same as the image size of the ultrasound image. Thus, the image size of the feature map is the same as the image size of the probability mapping feature map, so that for each candidate feature point, there is a feature vector in the feature map, and the pixel position corresponding to the feature map vector is the same as the pixel position corresponding to the candidate feature point. For example, a number of candidate feature points of three-dimensional data include candidate feature point a, and the pixel position corresponding to candidate feature point a is (100, 100, 50). Then there is a feature vector 1 in the feature map, and the pixel position corresponding to feature vector 1 is (100, 100, 50).
[0058] In one implementation of the present embodiment, in order to improve the attention of objects in the ultrasound image, attention weights can be configured along the two dimensions of space and channel when acquiring the feature map, and the attention weights can be multiplied by the feature map to adjust the features. When the ultrasound image recognition method provided by the present embodiment is applied to a segmentation network model, the segmentation network model can be configured with an attention mechanism module, and the attention mechanism module is embedded in the basic convolution module of the segmentation network model, so that attention to objects in the ultrasound image can be achieved without increasing the complexity of the model. In addition, the attention mechanism module can apply a channel attention unit and a spatial attention unit, and the spatial attention unit and the channel attention unit can be connected in parallel or in series. In a specific implementation of the present embodiment, the series connection order of the channel attention unit and the spatial attention unit is that the channel attention unit is located before the spatial attention unit.
[0059] In an implementation of this embodiment, the updating of the probability mapping feature map based on the feature vector and the probability vector specifically includes:
[0060] Based on the feature vectors and probability vectors corresponding to the candidate feature points, determine the fusion vectors corresponding to the candidate feature points;
[0061] Based on the iterative subdivision algorithm and the fusion vectors corresponding to each candidate feature point, the target probability vector corresponding to each candidate feature point is determined;
[0062] The target probability vector corresponding to each candidate feature point is used to update the probability vector corresponding to each candidate feature point, so as to update the probability mapping feature map.
[0063] Specifically, the fusion vector is determined based on the feature vector and the probability vector, wherein the feature vector and the probability vector can be concatenated to obtain a fusion vector, so that the fusion vector includes the shape information of the object carried by the feature vector (for example, ovaries, follicles, etc.) and the context information provided by the probability vector (for example, the shape, texture, position, size, etc. of the ovarian follicles). In this way, the boundary prediction effect of the ultrasound image can be improved by adaptively identifying candidate feature points through coarse-grained and fine-grained feature-rich representation learning.
[0064] The execution process of the iterative subdivision algorithm can be: for each selected candidate feature point fusion vector, the label of the candidate feature point is re-predicted through the classification network. The classification network uses the iterative subdivision algorithm, and the classification network may include a multi-layer perceptron. Of course, in practical applications, other methods are also used to re-predict the labels of candidate feature points, such as support vector machines (SVM), naive Bayes classification, etc. The iterative subdivision algorithm in this embodiment is a multi-layer perceptron, which shares weights for feature learning and classification of all candidate feature points (all regions).
[0065] In one implementation of this embodiment, when the ultrasonic image recognition method is applied to a segmentation network model, the segmentation network model may be configured with a feature extraction module, and the feature extraction module is used to extract a feature map of the ultrasonic image. It can be understood that the input item of the segmentation network model is an ultrasonic image, and the segmentation network will determine that the feature map corresponding to the ultrasonic image has a probability mapping feature map, and select several candidate feature points in the probability mapping feature map, and update the candidate feature points based on the feature map to update the probability mapping feature map. In addition, the attention mechanism module is configured in the feature extraction module, and the attention mechanism module enables the feature extraction module to perform channel attention and spatial attention on the extracted feature map. In one implementation of this embodiment, the feature extraction module uses a two-dimensional segmentation convolutional neural network for two-dimensional images and a three-dimensional segmentation convolutional neural network for three-dimensional images, so that the feature extraction module can capture the temporal and spatial feature information of two-dimensional / three-dimensional data, and uses a jump connection layer and a hole convolution to retain more image representation features.
[0066] The training process of the segmentation network model can be:
[0067] Acquire a training sample set, wherein the training sample set includes a plurality of training ultrasound images;
[0068] The preset network model is trained based on the ultrasound images in the training sample set to obtain the segmentation network model.
[0069] Specifically, the segmentation network model is used to execute the ultrasonic image recognition method described in the above embodiment, and the model structure of the preset network model is the same as the model structure of the segmentation network model. The model parameters of the preset network model are different from the model parameters of the segmentation network model, the model parameters of the preset network model are initial model parameters, and the model parameters of the segmentation network model are model parameters obtained by training the training ultrasonic images in the training sample set.
[0070] Each ultrasound image in the training sample set is a two-dimensional / three-dimensional ultrasound image, and the ultrasound image includes ovaries and / or follicles. Optionally, the ultrasound image includes ovaries and follicles. In addition, the ultrasound image is annotated, wherein the annotated refers to the ultrasound image containing annotation information, and the annotation information includes the shape, size and position of the ovaries and each follicle in the training ultrasound image. In practical applications, the shape, size and position of the ovaries and each follicle in the training ultrasound image can be segmented and annotated from different plane angles by manual annotation software, wherein the ovaries and follicles are respectively segmented with different segmentation maps (for example, different colors are selected to mark each part), plus the segmentation map of the background, a total of 3 segmentation maps.
[0071] After obtaining the training sample set, the training ultrasound images in the training sample set can be preprocessed so that the segmentation network model can learn the characteristics of the segmentation target. The preprocessing method can be standardized processing cropping, resampling, dimensionality adjustment and standardized processing, etc., wherein the standardized processing is to remove the mean of the data in the training ultrasound image to achieve centralized processing. The data centralization conforms to the data distribution law, can increase the generalization ability of the model, and can weaken the background of the ultrasound image in terms of visual effect. The above preprocessing method is only an embodiment of the present invention, and the preprocessing used in the present invention is not limited to the above method.
[0072] In one implementation of this embodiment, it is difficult to obtain large-scale image labels due to the difficulty in annotating ultrasound images. Large-scale data helps to improve the training of network models, improve the network's feature learning of targets, and can significantly improve the model prediction accuracy and avoid overfitting. Therefore, after the training sample set is obtained, the training sample set can be enhanced, wherein the enhancement processing can include random scaling, random rotation, and random mirroring of cross sections. This can improve the model prediction accuracy, avoid overfitting of the model during training, improve the edge recognition of ovarian follicles, and more effectively distinguish between effusion and follicles.
[0073] In one implementation of this embodiment, after inputting a training sample ultrasound image, the preset network model will determine the prediction area corresponding to the training ultrasound image, and train the network model based on the prediction area and the annotated area corresponding to the training ultrasound image. The process of determining the prediction area is the same as the process of determining the target area of the ultrasound image in the above embodiment, for example, first determine the probability mapping feature map of the training ultrasound image, then determine a number of candidate feature points based on the probability mapping feature map, then update the probability mapping feature map based on the candidate feature points, and determine the prediction area based on the updated probability mapping feature map. The process of selecting a number of candidate feature points by the preset network model is different from the process of selecting a number of candidate feature points by the segmentation network model.
[0074] In one implementation of the present embodiment, the selection process of the preset network model selecting several candidate feature points is to obtain the candidate probability value of each target category corresponding to each pixel point in the probability mapping feature map; based on the candidate probability value of each target category corresponding to each pixel point, determine several candidate feature points corresponding to the ultrasound image, wherein there are at least two candidate probability values among the several candidate probability values corresponding to each candidate feature point among the several candidate feature points, and the difference between the two candidate probability values meets the preset conditions.
[0075] In another implementation of this embodiment, the selection process of the preset network model selecting several candidate feature points is to randomly sample kN candidate points (where k>1, for example, k=3, etc.) in the probability mapping feature map, and select βN candidate points β∈[0,1] (the setting of this patent is β=0.7) from the kN candidate points as several candidate feature points, where the remaining (1-β)N candidate points are sampled in a uniform distribution. Wherein, N is a positive integer, and the value of N can be determined according to actual needs.
[0076] When determining the object area, this embodiment obtains several candidate feature points, and re-predicts the candidate feature points based on the feature map and the probability mapping feature map by an iterative subdivision algorithm, driving the segmentation network to better identify boundary points. In addition, the preset network model adds contrastive learning during the training process. At the same time, in order to improve the confidence of the selected candidate feature points, a point-to-point contrast loss is adopted. By maximizing the divergence between feature vectors of different categories and minimizing the divergence between feature vectors belonging to the same category but with different confidences, a contrastive learning loss is established; the divergence of the two types of feature vectors is maximized and the divergence of the same type of feature vectors is minimized. The network contains losses for multiple different tasks, and adaptive learning is adopted. The network automatically adjusts the weights of the loss functions of each task to balance the feature learning rate and optimization strength of different tasks. In addition, fine-grained analysis and attention mechanism modules are added to the preset network model to remove interfering features, improve the network's attention to effective features, learn more discriminative features, and improve the network's re-prediction of candidate feature points.
[0077] Based on this, after inputting the two-dimensional / three-dimensional ultrasound image carrying ovarian follicles into the trained segmentation network, by learning the effective features of the ovarian follicles in the two-dimensional / three-dimensional ultrasound image (the effective feature value is the feature that can distinguish the ovarian follicles from the image background, such as the shape information, position information, semantic information, etc. of the ovarian follicles), the segmentation network can distinguish the common background from the ovarian follicles, and perform preliminary segmentation to segment the shape contours of the ovarian and follicle ultrasound image data. After the segmentation network model segments the shape contour related information of the ovarian and follicle ultrasound images, by obtaining a number of candidate feature points as described in the above embodiment, and updating the probability mapping feature map based on the candidate feature points, the accuracy of the target area determined by the segmentation network model can be improved.
[0078] In one implementation of this embodiment, reinforcement learning is added to the training process of the preset network model, which can perform deep supervision on the feature learning of the intermediate feature layer. At the same time, adaptive learning is added to automatically adjust the weights of the loss functions of different tasks, and the weights of the loss functions of different tasks are set by considering the homoscedastic uncertainty between each task. At the same time, since the multi-layer perceptron predicts the segmentation label for each point, it will be trained through the segmentation loss of a specific task. In one implementation of this embodiment, the cross entropy loss function of the multi-layer perceptron on all selected fuzzy points is added up, and the loss is defined as the fuzzy point loss function. Therefore, the segmentation network loss function consists of four parts: the loss function L for coarse segmentation, the loss function L for coarse segmentation, and the loss function L for coarse segmentation. S The re-prediction loss function L of the sum point P , deep supervision loss function L D And the contrast loss function L c The calculation formula of the total loss function Loss is:
[0079] Loss = w1 × L S +w2×L P +w3×L D +w4×L c
[0080] Among them, w1, w2, w3 and w4 represent weights, for example, 0.4, 0.3, 0.01 and 0.3 respectively.
[0081] In addition, after determining the target area, the acquired target area can be post-processed, and the post-processing includes: corrosion, removal of the minimum connected component and expansion processing. This is because in the ultrasound image, the ovary and the follicles, and the follicles may be in close contact with each other, with blurred boundaries, and individual follicles are squeezed and irregular in shape, which makes identification difficult. In order to better deal with the problem of follicle adhesion, this example performs corrosion, removal of the minimum connected component, expansion and other processing on the ultrasound image to improve the accuracy of edge recognition. The post-processing form of the ovarian follicles of the ultrasound image data in the present invention is not limited to the above representation.
[0082] In an implementation of this embodiment, after the target area is acquired, the target area is reconstructed based on a three-dimensional surface and rendered.
[0083] Specifically, in order to obtain a better visualization effect and enhance the contrast between the ovarian follicles and the background, the two-dimensional ovarian follicles are rendered based on the contour information of the two-dimensional segmentation results; the three-dimensional segmentation results are reconstructed based on the three-dimensional surface to produce ovarian follicles, and the three-dimensional segmentation results are rendered. For example, the segmentation network is used to predict the boundaries, shapes and sizes of the ovaries and follicles of different scales, so that doctors can better observe and analyze the development of ovarian follicles. The reconstruction and rendering methods of the ovarian follicle segmentation results of the ultrasound image data in the present invention are not limited to the above representations.
[0084] The present invention uses a deep learning algorithm to automatically segment the shapes of follicles and ovaries, and on this basis, uses a correction algorithm (iterative subdivision algorithm, fine-grained analysis, attention mechanism module, reinforcement learning and contrastive learning, etc.) to detect fuzzy points on the boundaries of ovarian follicles, refine the prediction of the fuzzy boundaries, remove outliers in the detection results, and further improve the accuracy and smoothness of edge detection of follicles and ovaries.
[0085] The present invention automatically segments the input two-dimensional / three-dimensional ultrasonic image data of ovarian follicles, adds a correction algorithm to improve the edge recognition of ovarian follicles, and reconstructs the results to facilitate doctors to better observe and analyze the development of ovarian follicles. The present invention can provide support for more clinical tasks, such as parameter measurement, optimal section acquisition, follicle maturation time prediction, calculation of follicle number, etc. The present invention uses a deep learning model for automatic segmentation of ovarian follicle ultrasonic data, traditional machine learning methods or traditional image processing methods, focusing on the spatial and temporal information of the data, and the segmentation effect is more accurate, and the model has stronger generalization ability. The correction algorithm and rendering method added by the present invention can further improve the edge recognition of ovarian follicles, better solve the problem of follicle adhesion, and make it more convenient for doctors to observe and analyze.
[0086] Furthermore, the present invention provides a correction algorithm solution for edge blur re-prediction, and the algorithm is not limited to blur point-based re-prediction, fine-grained analysis, attention mechanism module, contrastive learning and reinforcement learning, and alternative solutions also include adversarial learning, iterative refinement algorithm, etc.
[0087] Furthermore, if Figure 2 As shown, based on the above ultrasonic image recognition method, the present invention also provides a terminal device accordingly, and the terminal device includes a processor 10, a memory 20 and a display 30. Figure 2 Only some components of the terminal device are shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
[0088] In some embodiments, the memory 20 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. In other embodiments, the memory 20 may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory 20 may also include both an internal storage unit of the terminal device and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal device, such as the program code of the terminal device. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a two-dimensional / three-dimensional image processing program 40 is stored on the memory 20, and the two-dimensional / three-dimensional image processing program 40 can be executed by the processor 10, thereby realizing the ultrasonic image recognition method in the present application.
[0089] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the ultrasound image recognition method.
[0090] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal device and to display a visual user interface. The components 10-30 of the terminal device communicate with each other via a system bus.
[0091] In one embodiment, when the processor 10 executes the 2D / 3D image recognition program 40 in the memory 20 , the steps of the 2D / 3D image recognition method described in the above embodiment are implemented.
[0092] The present invention also provides a computer-readable medium, wherein the storage medium stores a two-dimensional / three-dimensional image recognition program, and when the two-dimensional / three-dimensional image processing program is executed by a processor, the steps of the ultrasonic image recognition method as described above are implemented.
[0093] In summary, the present embodiment provides an ultrasonic image recognition method, terminal device and storage medium, the method obtaining a probability mapping feature map corresponding to the ultrasonic image to be recognized; determining a number of candidate feature points corresponding to the ultrasonic image based on the probability mapping feature map; updating the probability mapping feature map based on the number of candidate feature points, and determining a target area corresponding to the ultrasonic image based on the updated probability mapping feature map. The present invention obtains a probability mapping feature map of an ultrasonic image, and based on the probability mapping feature map, a number of candidate feature points, and corrects the number of candidate feature points to update the probability mapping feature map, which can improve the accuracy of the target area determined based on the probability mapping feature map, thereby enabling doctors to better observe and analyze the development of ovarian follicles.
[0094] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The storage medium can be a memory, a disk, an optical disk, etc.
[0095] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for recognizing an ultrasonic image, characterized in that: The method comprises: Obtaining a probability mapping feature map corresponding to the ultrasound image to be identified; Determine and obtain a number of candidate feature points corresponding to the ultrasound image based on the probability mapping feature map, wherein the candidate feature points include boundary fuzzy points at the junction of different areas; The probability mapping feature map is updated based on the correction algorithm and the plurality of candidate feature points, and a target area corresponding to the ultrasound image is determined based on the updated probability mapping feature map, wherein the target area includes an ovary and / or a follicle; The updating of the probability mapping feature map based on the correction algorithm and the plurality of candidate feature points specifically includes: Acquire a feature map corresponding to the ultrasound image, wherein the feature map includes image detail information of the ultrasound image; Determine a feature vector corresponding to each candidate feature point based on the feature map, and determine a probability vector corresponding to each candidate feature point based on the probability mapping feature map; Based on the feature vectors and probability vectors corresponding to each candidate feature point, the probability mapping feature map is updated; The updating of the probability mapping feature map based on the feature vector and the probability vector specifically includes: The feature vectors and probability vectors corresponding to each candidate feature point are concatenated to obtain the fusion vectors corresponding to each candidate feature point; For the fusion vector of each candidate feature point, the label of the candidate feature point is re-predicted through the classification network to determine the target probability vector corresponding to each candidate feature point; The target probability vector corresponding to each candidate feature point is used to update the probability vector corresponding to each candidate feature point, so as to update the probability mapping feature map.
2. The ultrasonic image recognition method according to claim 1, characterized in that: The ultrasound image is a two-dimensional / three-dimensional ultrasound image, and the ultrasound image includes follicles and / or ovaries.
3. The ultrasonic image recognition method according to claim 1, characterized in that: The step of obtaining a probability mapping feature graph corresponding to the ultrasound image to be identified specifically includes: The ultrasound image is input into a trained segmentation network model, and a probability mapping feature map corresponding to the ultrasound image is determined by the segmentation network model.
4. The ultrasonic image recognition method according to claim 1, characterized in that: The step of determining and acquiring a plurality of candidate feature points corresponding to the ultrasound image based on the probability mapping feature map specifically includes: Obtaining the confidence of the object category corresponding to each pixel point in the probability map feature map; Based on the confidence of the object category corresponding to each pixel point, a number of candidate feature points corresponding to the ultrasound image are determined.
5. The ultrasonic image recognition method according to claim 4, characterized in that: The difference between the confidence of the object category corresponding to each of the plurality of candidate feature points and a preset confidence meets a preset condition.
6. The ultrasonic image recognition method according to claim 1, characterized in that: The image size of the feature map is equal to the image size of the probability map feature map.
7. A terminal device, characterized in that: The terminal device includes: a memory, a processor, and an ultrasound image recognition program stored in the memory and executable on the processor. When the ultrasound image recognition program is executed by the processor, the steps of the ultrasound image recognition method as described in any one of claims 1 to 6 are implemented.
8. A computer-readable medium, characterized in that The computer-readable medium stores an ultrasound image recognition program, and when the ultrasound image recognition program is executed by a processor, the steps of the ultrasound image recognition method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and system of automated detection of lesions in medical images
CN102438529A
Method and system of automated detection of lesions in medical images
CN103854028A
Breast ultrasound image processing device, method, computer device and storage medium
CN109308488A
Ultrasonic image adjustment method, system and device and computer storage medium
CN110322399A
Two-dimensional follicle detection method and device, ultrasonic equipment and readable storage medium
CN110570350A
