A standard cross-sectional image replacement method and device, an ultrasound device and a storage medium

By acquiring the section category and standard section score of ultrasound images, and using a classification model to automatically replace standard section images, the problem of low efficiency in existing technologies is solved, and a highly efficient automated replacement process is achieved.

CN116433563BActive Publication Date: 2026-04-21SONOSCAPE MEDICAL CORP
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SONOSCAPE MEDICAL CORP
Filing Date
2021-12-31
Publication Date
2026-04-21

Smart Images

  • Figure CN116433563B_ABST
    Figure CN116433563B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, ultrasound device, and computer-readable storage medium for replacing standard section images. The method includes: acquiring the target section category and the target standard section score corresponding to the target section category of a target ultrasound image; if the target ultrasound image is a standard section image of the target section category and the target standard section score meets preset conditions, then replacing the identified standard section image with the target ultrasound image; the preset conditions include that the difference between the target standard section score and the standard section score of the identified standard section image of the target section category is greater than or equal to a first preset value, or that the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value and the smoothness of the standard section score of the target ultrasound image is greater than or equal to the smoothness of the standard section score of the stored standard section image. This application improves the efficiency of standard section image replacement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of ultrasound technology, and more specifically, to a method and apparatus for replacing standard cross-sectional images, an ultrasound device, and a computer-readable storage medium. Background Technology

[0002] During obstetric examinations, doctors need to operate the ultrasound probe while simultaneously pressing buttons on the machine to store ultrasound images from 35 sections. Related technologies can use classification models to automatically identify the section category and standardization level of the ultrasound images. If the current frame is a standard section image of a certain section category, the standard section score of the current frame is compared with that of previously identified standard section images of the same section category to determine whether the current frame is more standard and whether it needs to be replaced with a standard section image of that section category.

[0003] However, the criteria for determining standard cross-sections vary from person to person, making it difficult to quantify the standardness. Classification models cannot effectively learn these criteria. When a doctor believes that a particular image frame is more standard than the already identified standard cross-section image, manual operations (such as freezing, previewing, or saving) are required to replace the already identified standard cross-section image, which is inefficient.

[0004] Therefore, how to improve the replacement efficiency of standard cross-sectional images is a technical problem that needs to be solved by those skilled in the art. Summary of the Invention

[0005] The purpose of this application is to provide a standard section image replacement method, apparatus, ultrasound device, and computer-readable storage medium, which improves the replacement efficiency of standard section images.

[0006] To achieve the above objectives, this application provides a standard cross-sectional image replacement method, comprising:

[0007] Obtain a target ultrasound image from the video stream, and obtain the target section category of the target ultrasound image and the target standard section score corresponding to the target section category;

[0008] Determine whether the target ultrasound image is a standard section image of the target section category;

[0009] If the target ultrasound image is a standard section image of the target section category, then, assuming that there is an identified standard section image of the target section category, it is determined whether the target standard section score meets a preset condition; wherein, the preset condition includes that the difference between the target standard section score and the standard section score of the identified standard section image of the target section category is greater than or equal to a first preset value, or that the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value and the smoothness of the standard section score of the target ultrasound image is greater than or equal to the smoothness of the standard section score of the stored standard section image;

[0010] If the target standard section score meets the preset conditions, the identified standard section image is replaced with the target ultrasound image.

[0011] The step of determining whether the target standard section score meets the preset conditions includes:

[0012] Determine whether the difference between the target standard section score and the standard section score of the standard section image whose target section category has been identified is greater than or equal to a first preset value;

[0013] If the difference between the target standard section score and the standard section score of the standard section image whose target section category has been identified is greater than or equal to the first preset value, then the target standard section score is determined to meet the preset condition.

[0014] If the difference between the target standard section score and the standard section score of the standard section image already identified for the target section category is less than the first preset value, then it is determined whether the absolute value of the difference between the standard section score of the already identified standard section image and the target standard section score is less than the first preset value.

[0015] If the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is greater than or equal to the first preset value, then the target standard section score is determined not to meet the preset condition.

[0016] If the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value, then the smoothness of the standard section score of the target ultrasound image is calculated, and it is determined whether the smoothness of the standard section score of the target ultrasound image is greater than or equal to the smoothness of the standard section score of the stored standard section image.

[0017] If the standard section fraction smoothness of the target ultrasound image is greater than or equal to the standard section fraction smoothness of the stored standard section image, then the target standard section fraction is determined to meet the preset condition.

[0018] If the standard section fraction smoothness of the target ultrasound image is less than the standard section fraction smoothness of the stored standard section image, then the target standard section fraction is determined not to meet the preset condition.

[0019] The calculation of the standard section fractional smoothness of the target ultrasound image includes:

[0020] The standard section score smoothness of the target ultrasound image is calculated based on the standard section score of the target section category corresponding to the ultrasound images of a predetermined number of consecutive frames preceding the target ultrasound image and the standard section score of the target section category corresponding to the target ultrasound image.

[0021] The step of determining whether the target ultrasound image is a standard section image of the target section category includes:

[0022] Determine whether the standard section fraction is greater than or equal to the second preset value;

[0023] If so, the target ultrasound image is determined to be a standard section image of the target section category.

[0024] The step of determining whether the target ultrasound image is a standard section image of the target section category includes:

[0025] Calculate the standard score corresponding to the target section category based on the target prediction score of the target section category corresponding to the target ultrasound image;

[0026] If the standard score is greater than or equal to the standard score threshold, then the target ultrasound image is determined to be a standard section image of the target section category;

[0027] The calculation of the standard score corresponding to the target section category based on the target prediction score of the target section category corresponding to the target ultrasound image includes: if the section category of the previous frame ultrasound image of the target ultrasound image is not the target section category, then the standard score corresponding to the target section category is initialized; if the section category of the previous frame ultrasound image of the target ultrasound image is the target section category, then the standard score corresponding to the target section category calculated based on the target prediction score of the target section category corresponding to the previous frame ultrasound image of the target ultrasound image is obtained; and when the target prediction score of the target section category corresponding to the target ultrasound image is greater than or equal to a score threshold, the standard score is accumulated.

[0028] The target prediction score includes any one or a combination of several of the target standard section score, the target basic standard section score, and the target joint score. The joint score is used to comprehensively describe the standard degree and basic standard degree of the section.

[0029] Accordingly, if the target prediction score of the target section category corresponding to the target ultrasound image is greater than or equal to the score threshold, the standard score is accumulated, including:

[0030] Determine the score threshold corresponding to the predicted score of each target in the target section category corresponding to the target ultrasound image;

[0031] If the target prediction score of any target section category corresponding to the target ultrasound image is greater than or equal to the corresponding score threshold, then the standard score is accumulated by the corresponding score.

[0032] The step of acquiring the target section category of the target ultrasound image and the target prediction score of the target section category includes:

[0033] The target ultrasound image is input into a classification model, and the target section category of the target ultrasound image is obtained from the output of the classification model.

[0034] Obtain the target standard section score corresponding to the target section category from the output of the classification model, and / or obtain the target basic standard section score corresponding to the target section category from the output of the classification model, and / or calculate the target joint score based on the target standard section score, the target basic standard section score and the joint score parameter of the target section category corresponding to the target ultrasound image.

[0035] This also includes:

[0036] Determine the lower bound and upper bound of the joint fraction parameter corresponding to the target section category;

[0037] Based on the number of target frames in the ultrasound images preceding the target ultrasound image that have the target candidate section category, interpolation is performed between the lower bound of the joint score parameter and the upper bound of the joint score parameter to calculate the joint score parameter of the target section category corresponding to the target ultrasound image.

[0038] Wherein, determining the lower bound and upper bound of the joint score parameter corresponding to the target section category includes:

[0039] Obtain target slice samples whose sum of the standard slice score and the basic standard slice score corresponding to the candidate slice category is greater than or equal to a preset value;

[0040] In a coordinate system containing the coordinate points corresponding to the target section sample, a first target linear function satisfying a first condition and a second target linear function satisfying a second condition are determined; wherein, the coordinate points corresponding to the target section sample in the coordinate system are determined based on the standard section fraction and the basic standard section fraction of the target section sample, the first condition includes that the sum of the distances between all the coordinate points corresponding to the target section sample and the first target linear function is minimized and that the basic standard section fractions corresponding to all the non-standard section samples are located at the function value of the first target linear function, and the second condition includes that the sum of the distances between all the coordinate points corresponding to the target section sample and the second target linear function is minimized;

[0041] The parameters of the first objective linear function are determined as the upper bound of the joint fractional parameters, and the parameters of the second objective linear function are determined as the lower bound of the joint fractional parameters.

[0042] The determination of the score threshold corresponding to the predicted score of each target in the target section category corresponding to the target ultrasound image includes:

[0043] Determine the lower and upper threshold bounds of the target standard section score or the target basic standard section score corresponding to the target section category;

[0044] Based on the number of target frames in the ultrasound images preceding the target ultrasound image that have the same section category as the target section, interpolation is performed between the lower threshold and the upper threshold to calculate the score threshold corresponding to the target standard section score or the target basic standard section score; wherein, the score threshold is negatively correlated with the number of target frames.

[0045] The determination of the lower and upper threshold bounds of the target standard section score corresponding to the target section category includes:

[0046] Obtain standard and non-standard section samples corresponding to the target section category, and determine the standard section score corresponding to the standard and non-standard section samples;

[0047] The standard segment score is used as the target standard segment score threshold. The weighted value of precision and recall is calculated according to the first weight ratio. The target standard segment score threshold corresponding to the maximum weighted value is determined as the upper bound of the target standard segment score threshold.

[0048] The standard segment score is used as the target standard segment score threshold. The weighted value of precision and recall is calculated according to the second weight ratio. The target standard segment score threshold corresponding to the maximum weighted value is determined as the lower bound of the target standard segment score threshold.

[0049] Wherein, the first weight ratio and the second weight ratio are the ratios of the weight of precision to the weight of recall, and the first weight ratio is greater than or equal to the second weight ratio.

[0050] The determination of the lower and upper threshold bounds of the basic target standard section score corresponding to the target section category includes:

[0051] Obtain basic standard section samples and non-standard section samples corresponding to the target section category, and determine the basic standard section scores corresponding to the basic standard section samples and non-standard section samples;

[0052] The basic standard segment score is used as the target basic standard segment score threshold. The weighted value of precision and recall is calculated according to the third weight ratio. The target basic standard segment score threshold corresponding to the maximum weighted value is determined as the upper bound of the threshold of the basic target standard segment score.

[0053] The basic standard segment score is used as the target basic standard segment score threshold. The weighted value of precision and recall is calculated according to the fourth weight ratio. The target basic standard segment score threshold corresponding to the maximum weighted value is determined as the lower bound of the threshold of the basic target standard segment score.

[0054] Wherein, the third weight ratio and the fourth weight ratio are the ratios of the weight of precision to the weight of recall, and the third weight ratio is greater than or equal to the fourth weight ratio.

[0055] To achieve the above objectives, this application provides a standard cross-sectional image replacement device, comprising:

[0056] The acquisition module is used to acquire a target ultrasound image from a video stream, and to acquire the target section category of the target ultrasound image and the target standard section score corresponding to the target section category;

[0057] The first judgment module is used to determine whether the target ultrasound image is a standard section image of the target section category; if so, the workflow of the second judgment module is started.

[0058] The second judgment module is used to determine whether the target standard section score meets preset conditions, provided that there is an identified standard section image for the target section category; wherein, the preset conditions include that the difference between the target standard section score and the standard section score of the identified standard section image for the target section category is greater than or equal to a first preset value, or that the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value and the smoothness of the standard section score of the target ultrasound image is greater than or equal to the smoothness of the standard section score of the stored standard section image;

[0059] The replacement module is used to replace the identified standard section image with the target ultrasound image when the target standard section score meets the preset conditions.

[0060] To achieve the above objectives, this application provides an ultrasonic device, comprising:

[0061] Memory, used to store computer programs;

[0062] A processor, used to implement the steps of the standard cross-sectional image replacement method described above when executing the computer program.

[0063] To achieve the above objectives, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the standard cross-sectional image replacement method described above.

[0064] As can be seen from the above scheme, the standard section image replacement method provided in this application includes: acquiring a target ultrasound image from a video stream, acquiring the target section category of the target ultrasound image and the target standard section score corresponding to the target section category; determining whether the target ultrasound image is a standard section image of the target section category; if the target ultrasound image is a standard section image of the target section category, then, provided that there is an identified standard section image in the target section category, determining whether the target standard section score meets a preset condition; wherein, the preset condition includes that the difference between the target standard section score and the standard section score of the identified standard section image in the target section category is greater than or equal to a first preset value, or, the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value and the smoothness of the standard section score of the target ultrasound image is greater than or equal to the smoothness of the standard section score of the stored standard section image; if the target standard section score meets the preset condition, then replacing the identified standard section image with the target ultrasound image.

[0065] This application's standard section image replacement method captures the doctor's acquisition intention through the smoothness of the standard section score. It combines this with the standard section score predicted by a classification model to comprehensively determine whether to replace the standard section image. When the doctor acquires a standard section image that needs to be saved, they will linger at that position for a longer period, resulting in a higher standard section score smoothness. The ultrasound equipment can automatically identify and replace the image, eliminating the need for manual saving by the doctor and improving the efficiency of standard section image replacement. This application also discloses a standard section image replacement device, an ultrasound device, and a computer-readable storage medium, which can achieve the same technical effects.

[0066] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description

[0067] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. The drawings are used to provide a further understanding of this disclosure and constitute a part of the specification. They are used together with the following detailed description to explain this disclosure, but do not constitute a limitation of this disclosure. In the drawings:

[0068] Figure 1 This is a flowchart illustrating a standard cross-sectional image replacement method according to an exemplary embodiment;

[0069] Figure 2 A flowchart illustrating another standard cross-sectional image replacement method according to an exemplary embodiment;

[0070] Figure 3 This is a schematic diagram illustrating a method for determining the upper and lower bounds of a threshold corresponding to a long axis section of the femur according to an exemplary embodiment;

[0071] Figure 4 This is a structural diagram illustrating a standard cross-sectional image replacement device according to an exemplary embodiment;

[0072] Figure 5 This is a structural diagram of an ultrasonic device according to an exemplary embodiment. Detailed Implementation

[0073] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Furthermore, in the embodiments of this application, "first," "second," etc., are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0074] This application discloses a standard cross-sectional image replacement method, which improves the replacement efficiency of standard cross-sectional images.

[0075] See Figure 1 A flowchart illustrating a standard cross-sectional image replacement method according to an exemplary embodiment is shown below. Figure 1 As shown, it includes:

[0076] S101: Obtain the target ultrasound image from the video stream, and obtain the target section category of the target ultrasound image and the target standard section score corresponding to the target section category;

[0077] The execution subject of this embodiment is an ultrasound device, and the purpose is to automatically identify the most standard ultrasound image corresponding to the section category. For the target ultrasound image in the current frame, first identify its corresponding target section category, then determine whether it is a standard section image of the target section category, and finally determine whether its standardization exceeds the already identified standard ultrasound image corresponding to the target section category. If so, then replace it.

[0078] In this step, the section categories of the target ultrasound image can be identified based on a classification model. In practice, multiple section categories are predefined, and rules are established for standard sections, basic standard sections, and non-standard sections corresponding to each section category. Based on this, multiple standard sections, multiple basic standard sections, and multiple non-standard sections corresponding to each section category are used as training samples to train the classification model. The trained classification model is then used to identify section categories. In practice, the ultrasound device acquires the target ultrasound image and inputs it into the trained classification model. The output of the classification model is a predicted score for each section category. For example, 13 key section categories in obstetric screening are predefined, and the classification model outputs predicted scores for each of the 13 section categories, i.e., 13 predicted scores. Preferably, the predicted scores include standard section scores, basic standard section scores, and non-standard section scores; that is, the output of the classification model is the standard section score, basic standard section score, and non-standard section score for each section category. In the example above, the classification model outputs the standard section score, basic standard section score, and non-standard section score corresponding to the 13 section categories, resulting in 13 × 3 = 39 predicted scores. The classification model can be constructed using convolutional neural networks or other artificial intelligence algorithms.

[0079] Furthermore, the target section category of the target ultrasound image is obtained from the output of the classification model. As a feasible implementation, the section category corresponding to the maximum predicted score can be used as the target section category of the target ultrasound image predicted by the classification model. In a specific implementation, if the classification model outputs one predicted score for each section category, the section category corresponding to the maximum predicted score is used as the target section category of the target ultrasound image predicted by the classification model. If the classification model outputs multiple predicted scores for each section category, the section categories corresponding to the maximum predicted scores of all values ​​are used as the target section categories of the target ultrasound image predicted by the classification model.

[0080] As another feasible implementation, the section category corresponding to the maximum predicted score is determined as the target candidate category of the target ultrasound image; the state category of ultrasound images in a preset number of frames preceding the target ultrasound image is determined in the video stream; if the state category is consistent with the target candidate category, then the state category is determined as the target section category corresponding to the target ultrasound image. In a specific implementation, a target queue is maintained to store the predicted scores corresponding to multiple consecutive frames of ultrasound images predicted by the classification model. Each element in the target queue records the predicted score corresponding to one frame of ultrasound image, and the section category corresponding to the maximum predicted score in the target queue is determined as the pending state category. Further, it is determined that the number of frames in the preset number of ultrasound images whose candidate category is consistent with the pending state category meets a preset condition. If so, the pending state category is determined as the state category of the ultrasound images in the preset number of frames preceding the target ultrasound image. The preset condition here may include the number of frames in the preset number of ultrasound images whose candidate category is consistent with the pending state category being greater than or equal to a preset value, or the ratio of the number of frames in the preset number of ultrasound images whose candidate category is consistent with the pending state category to the preset number of frames being greater than or equal to a preset ratio. For example, the preset number of frames is 5, and the preset condition is that the number of frames in which the candidate category of the cross-section class matches the pending state class is greater than or equal to 3. If the target candidate category of the target ultrasound image matches the state category of the ultrasound image in the preset number of frames preceding the target ultrasound image, it indicates that the classification model has high consistency in predicting the cross-section class of multiple consecutive frames, and the target candidate category is determined as the target cross-section class corresponding to the target ultrasound image; otherwise, the output cannot determine the cross-section class of the target ultrasound image.

[0081] S102: Determine whether the target ultrasound image is a standard section image of the target section category; if so, proceed to S103;

[0082] In this step, the target ultrasound image is determined to be a standard section image of the target section category. If it is, proceed to S103; otherwise, continue to the identification of the next frame of ultrasound image.

[0083] As a feasible implementation, determining whether the target ultrasound image is a standard section image of the target section category includes: determining whether the standard section score is greater than or equal to a second preset value; if so, then determining that the target ultrasound image is a standard section image of the target section category. In specific implementations, the standard section score of the target section category output by the classification model can be used alone to determine whether the target ultrasound image is a standard section image of the target section category. That is, when the standard section score of the target section category corresponding to the target ultrasound image is greater than or equal to the second preset value, it is determined to be a standard section image of the target section category.

[0084] As another feasible implementation, determining whether the target ultrasound image is a standard section image of the target section category includes: calculating the standard score corresponding to the target section category based on the target prediction score of the target section category corresponding to the target ultrasound image; if the standard score is greater than or equal to the standard score threshold, then determining that the target ultrasound image is a standard section image of the target section category; wherein, calculating the standard score corresponding to the target section category based on the target prediction score of the target section category corresponding to the target ultrasound image includes: if the section category of the previous frame ultrasound image of the target ultrasound image is not the target section category, then initializing the standard score corresponding to the target section category; if the section category of the previous frame ultrasound image of the target ultrasound image is the target section category, then obtaining the standard score corresponding to the target section category calculated based on the target prediction score of the target section category corresponding to the previous frame ultrasound image of the target ultrasound image; and when the target prediction score of the target section category corresponding to the target ultrasound image is greater than or equal to the score threshold, accumulating the standard score.

[0085] In this embodiment, the target ultrasound image is determined to be a standard section image of the target section category based on the target prediction score of the corresponding target section category. The target prediction score here may include the target standard section score and the target basic standard section score corresponding to the target section category, which can be obtained from the output of the classification model. The target prediction score may also include a target joint score calculated based on the target standard section score and the target basic standard section score. The target joint score is used to comprehensively describe the standardization and basic standardization of the section. Furthermore, a corresponding standardization score is maintained for each section category, with an initial value of zero. For each frame of ultrasound image acquired by the ultrasound device, if the target prediction score of its corresponding section category is greater than or equal to a score threshold, the standardization score is accumulated.

[0086] In specific implementation, if the target ultrasound image is the first frame of ultrasound image where the target section category is detected, the current value of the standard score corresponding to the target section category is an initial value, such as zero. If the target prediction score of the target section category corresponding to the target ultrasound image is greater than or equal to a score threshold, the standard score is accumulated; otherwise, it is initialized. If the section category of the previous frame of ultrasound image is also the target section category, the standard score of the target section category has already been calculated when recognizing that previous frame (if the target prediction score of the target section category corresponding to the previous frame is greater than or equal to a score threshold, the standard score of the target section category is accumulated; otherwise, it is initialized). Therefore, the standard score calculated based on the previous frame of ultrasound image is obtained. If the target prediction score of the target section category corresponding to the target ultrasound image is greater than or equal to a score threshold, the standard score is accumulated; otherwise, it is initialized. This recognition process is repeated when recognizing the next frame of ultrasound image.

[0087] For example, the first frame of the ultrasound image corresponds to section category A, and the initial standard score for section category A is 0. Since the target prediction score for section category A in the first frame is greater than the score threshold, the standard score is incremented by 20, so the standard score for section category A is now 20. The second frame of the ultrasound image corresponds to section category A, and its target prediction score is greater than the score threshold, so the standard score for section category A is now 40. The third frame of the ultrasound image corresponds to section category A, and its target prediction score is less than the score threshold, so the standard score for section category A is initialized to 0. The fourth frame of the ultrasound image corresponds to section category A, and its target prediction score is greater than the score threshold, so the standard score for section category A is incremented again from 0 to 20. The fifth frame of the ultrasound image corresponds to section category B. Since this is the first ultrasound image detected in section category B, the initial standard score for section category B is 0. Because the target prediction score for section category B in the fifth frame is greater than the score threshold, the standard score is incremented by 20, resulting in a standard score of 20 for section category B. The sixth frame of the ultrasound image reverts to section category A. Since the section category of its preceding frame (the fifth frame) is section category B, which is different from section category A, the standard score for section category A is incremented again from 0 to 20.

[0088] Furthermore, if the target predicted score includes multiple predicted scores, different score thresholds can be set for different predicted scores, and different cumulative score values ​​can be set for different predicted scores. If any target predicted score of the target section category corresponding to the target ultrasound image is greater than or equal to the corresponding score threshold, the standard score is accumulated by the corresponding score. For example, if the target predicted score includes a standard section score and a basic standard section score, if the standard section score is greater than or equal to the standard section score threshold, the standard score is increased by a first preset value; if the basic standard section score is greater than or equal to the basic standard section score threshold, the standard score is increased by a second preset value; if both the standard section score and the basic standard section score are greater than or equal to the basic standard section score threshold, the standard score is increased by both the first and second preset value scores simultaneously. Additionally, it should be noted that when each target predicted score is less than the corresponding score threshold, the standard score is initialized. For example, if the standard section score is less than the standard section score threshold and the basic standard section score is less than the basic standard section score threshold, the standard section score is set to zero. The specific values ​​of the first and second preset values ​​are not limited here and can be flexibly set according to the actual situation. Preferably, the score of the first preset value is greater than the score of the second preset value. For example, if the standard section score is greater than or equal to the standard section score threshold, the standard score is increased by 50; if the basic standard section score is greater than or equal to the basic standard section score threshold, the standard score is increased by 25.

[0089] In the following situations: if the state category of the ultrasound images in the preceding preset number of frames matches the target candidate category predicted by the classification model, then the state category is determined as the target section category corresponding to the target ultrasound image; otherwise, the output indicates that the section category of the target ultrasound image cannot be determined. Furthermore, if section categories of multiple consecutive ultrasound images are detected, the standard score calculation step is triggered. For example, if section categories of three consecutive ultrasound images are detected, the standard score calculation step is triggered; otherwise, the target ultrasound image is directly determined to be a non-standard image. This avoids detecting occasional standard section images while improving detection efficiency.

[0090] Furthermore, it is determined whether the standard score is greater than or equal to the standard score threshold. If so, the target ultrasound image is determined to be a standard section image of the target section category; otherwise, the target ultrasound image is determined to be a non-standard section image.

[0091] S103: If a standard section image has been identified for the target section category, determine whether the target standard section score meets a preset condition; if yes, proceed to S104; wherein, the preset condition includes that the difference between the target standard section score and the standard section score of the identified standard section image for the target section category is greater than or equal to a first preset value, or that the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value and the smoothness of the standard section score of the target ultrasound image is greater than or equal to the smoothness of the standard section score of the stored standard section image;

[0092] S104: Replace the identified standard cross-sectional image with the target ultrasound image.

[0093] In this embodiment, in addition to directly replacing ultrasound images with large differences in standard section scores, the standard section score stability is used to capture the doctor's intention for ultrasound images with small differences in standard section scores. The standard section score stability is the smoothness of the standard section score of the target section category corresponding to the ultrasound images of the third preset number of consecutive frames preceding the current frame. The higher the standard section score stability, the longer the doctor stays on the ultrasound image, and the greater the probability that the doctor wants to save the ultrasound image as a standard section image.

[0094] Therefore, after determining that the target ultrasound image is a standard section image of the target section category, the first step is to determine whether an identified standard section image exists for the target section category. If not, the target ultrasound image is directly used as the standard section image corresponding to the target section category, and subsequent operations such as display and storage can be performed. If yes, the difference between the target standard section score and the standard section score of the identified standard section image of the target section category is determined to be greater than or equal to a first preset value. For example, the difference between the standard section score of the target ultrasound image and the standard section score of the identified standard section image is determined to be greater than 0.05 (this value can be adjusted according to the actual situation). If yes, it indicates that the standardization of the classification model predicting the target ultrasound image is high, and the identified standard section image is replaced with the target ultrasound image. If no, the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score can be further determined to be less than the first preset value. The system uses a first preset value, for example, to determine whether the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than 0.05 (this value can be adjusted according to the actual situation). If not, it means that the classification model predicts that the standard score of the identified standard section image is high, and no replacement operation is performed; the target ultrasound image is discarded. If yes, it means that the standard section scores of the target ultrasound image and the identified standard section image are close, that is, the standard scores are close. Then, the smoothness of the standard section score of the target ultrasound image can be further calculated, and it is determined whether the smoothness of the standard section score of the target ultrasound image is greater than or equal to the smoothness of the standard section score of the stored standard section image. If yes, it means that the doctor is lingering at the probe position to obtain a better image, and the identified standard section image is replaced with the target ultrasound image. If no, that is, the doctor's acquisition intention (intention to replace the identified standard section image) is not recognized, the target ultrasound image is discarded.

[0095] It should be noted that this embodiment does not limit the calculation method of the standard section fraction smoothness. As a feasible implementation, the calculation of the standard section fraction smoothness of the target ultrasound image includes: calculating the standard section fraction smoothness of the target ultrasound image based on the standard section fractions of the target section category corresponding to ultrasound images of a preset number of consecutive frames preceding the target ultrasound image and the standard section fractions of the target section category corresponding to the target ultrasound image. In a specific implementation, a queue can be created to store the standard section fractions of the target section category corresponding to ultrasound images of a preset number of consecutive frames preceding the current frame (i.e., the target ultrasound image) and the standard section fractions of the target section category corresponding to the current frame (i.e., the target ultrasound image). The standard section fraction smoothness of the target ultrasound image is calculated based on all data in this queue. For example, the variance or standard deviation of all data in the queue can be determined as the standard section fraction smoothness to be calculated, which is not specifically limited here.

[0096] The standard section image replacement method in this application captures the doctor's acquisition intention by measuring the smoothness of the standard section score. It combines the standard section score predicted by the classification model to comprehensively determine whether to replace the standard section image. When the doctor acquires a standard section image that needs to be saved, the doctor will stay at the current position for a longer time, and the standard section score will be more stable. The ultrasound equipment can automatically identify and replace it without the doctor having to manually save it, thus improving the replacement efficiency of the standard section image.

[0097] This application discloses a standard cross-sectional image replacement method. Compared to the first embodiment, this embodiment further explains and optimizes the technical solution. Specifically:

[0098] See Figure 2 A flowchart illustrating another standard cross-sectional image replacement method according to an exemplary embodiment, such as... Figure 2 As shown, it includes:

[0099] S201: Acquire the target ultrasound image, and input the target ultrasound image into the classification model to obtain the standard section score and basic standard section score for each section category corresponding to the target ultrasound image;

[0100] In this embodiment, the predicted scores output by the classification model include standard section scores and basic standard section scores. Of course, in order to improve the prediction accuracy of the classification model, non-standard section scores can also be output.

[0101] S202: Determine the section category corresponding to the maximum predicted score as the target candidate category of the target ultrasound image;

[0102] In this step, the section category corresponding to the maximum predicted score is the section category of the target ultrasound image predicted by the classification model, and it is used as the target candidate category for subsequent judgment on whether it can be trusted. If the predicted score includes standard section score, basic standard section score and non-standard section score, then the section category corresponding to the maximum score among all standard section scores, all basic standard section scores and all non-standard section scores output by the classification model is determined as the target candidate category of the target ultrasound image.

[0103] S203: Determine the state category of ultrasound images in a preset number of frames preceding the target ultrasound image in the video stream;

[0104] In this embodiment, each frame of ultrasound image acquired by the ultrasound device is input into the classification model to predict the section category. In this step, the state category of ultrasound images of a preset number of frames before the target ultrasound image predicted by the classification model is determined. The preset number of frames is not specifically limited here and can be flexibly set according to the actual situation.

[0105] S204: If the state category is consistent with the target candidate category, then the state category is determined as the target section category corresponding to the target ultrasound image;

[0106] In practice, if the target candidate category of the target ultrasound image is consistent with the state category of the ultrasound images in the previous preset number of frames, it indicates that the classification model has a high consistency in predicting the section category of multiple consecutive frames. The target candidate category is then determined as the target section category corresponding to the target ultrasound image. Otherwise, the output cannot determine the section category of the target ultrasound image.

[0107] S205: Determine the score threshold corresponding to each predicted score of the target section category corresponding to the target ultrasound image;

[0108] In this embodiment, the predicted scores used to determine whether a target slice category can be trusted may include multiple predicted scores, namely, the standard slice score and the basic standard slice score. In this step, a score threshold corresponding to each predicted score is determined.

[0109] In a preferred embodiment, this step includes: determining the lower bound and upper bound of the prediction score threshold corresponding to the target section category; calculating the score threshold of the target section category corresponding to the target ultrasound image by interpolating between the lower bound and the upper bound of the prediction score threshold based on the number of target frames of ultrasound images preceding the target ultrasound image with the section category of the target section category; wherein the score threshold is negatively correlated with the number of target frames.

[0110] In practice, the upper and lower bounds of the prediction score threshold are pre-determined for each slice category. After determining the target slice category of the target ultrasound image, the ultrasound equipment determines the upper and lower bounds of the prediction score threshold corresponding to the target slice category. Further, based on the number of target frames in the ultrasound images preceding the target ultrasound image that have a candidate slice category, the score threshold is calculated by interpolation between the upper and lower bounds of the prediction score threshold. Linear interpolation can be used here. For example, if the interpolation frame range is 10 frames, the upper bound of the prediction score threshold for slice category A is A0, and the lower bound is A1; the upper bound of the prediction score threshold for slice category B is B0, and the lower bound is B1. If the predicted section category of the first frame of ultrasound image is section category A, then its corresponding score threshold is A0. If the predicted section category of the second frame of ultrasound image is also section category A, then its corresponding score threshold is A0+(A1-A0) / 10. If the predicted section category of the third frame of ultrasound image is also section category A, then its corresponding score threshold is A0+2(A1-A0) / 10, and so on. If the predicted section category of the tenth frame of ultrasound image is also section category A, then its corresponding score threshold is A1. If the predicted section category of the first frame of ultrasound image is section category A, then its corresponding score threshold is A0. If the predicted section category of the second frame of ultrasound image is also section category A, then its corresponding score threshold is A0+(A1-A0) / 10. However, if the predicted section category of the third frame of ultrasound image is section category B, then its corresponding score threshold is B0. If the predicted section category of the fourth frame of ultrasound image is still section category B, then its corresponding score threshold is B0+(B1-B0) / 10, and so on.

[0111] It is evident that the score threshold is negatively correlated with the number of target frames in ultrasound images preceding the target ultrasound image that belong to the target section category. That is, when the target section category is first predicted, the score threshold uses the upper bound of the predicted score threshold. As the number of accumulated ultrasound images with the target section category increases, the score threshold gradually decreases until it reaches the lower bound of the predicted score threshold. It is understandable that for section categories with similar structures, the predicted scores output by the classification model are similar and not very high. Therefore, in this embodiment, a score threshold for the target section category corresponding to the target ultrasound image is calculated. Subsequently, the predictive score of the target section category corresponding to the target ultrasound image is compared with this score threshold to determine whether the target section category predicted by the classification model can be trusted. Furthermore, the larger the number of target frames in ultrasound images preceding the target ultrasound image that belong to the target section category, the higher the trust level of the predicted target section category, thus reducing the score threshold.

[0112] It should be noted that the upper and lower bounds of the standard section score threshold and the basic standard section score threshold for each section category can be manually set according to the actual situation, or they can be automatically searched using section samples of each section category. Using the aforementioned target segment categories as an example, determining the lower and upper bounds of the standard segment score threshold corresponding to the target segment category includes: obtaining standard segment samples and non-standard segment samples corresponding to the target segment category, and determining the standard segment scores corresponding to the standard segment samples and non-standard segment samples; using the standard segment scores as the target standard segment score threshold, calculating the weighted value of precision and recall according to a first weight ratio, and determining the target standard segment score threshold corresponding to the maximum weighted value as the upper bound of the standard segment score threshold; using the standard segment scores as the target standard segment score threshold, calculating the weighted value of precision and recall according to a second weight ratio, and determining the target standard segment score threshold corresponding to the maximum weighted value as the lower bound of the standard segment score threshold; wherein, the first weight ratio and the second weight ratio are the ratio of the weight of precision to the weight of recall, and the first weight ratio is greater than or equal to the second weight ratio.

[0113] In practice, for the segment samples corresponding to the target segment category, basic standard segment samples are removed. That is, the upper and lower bounds of the standard segment score threshold are determined using standard and non-standard segment samples. The standard segment score is used as the target standard segment score threshold. The weighted values ​​of precision and recall are calculated according to a first weight ratio. The target standard segment score threshold corresponding to the maximum weighted value is determined as the upper bound of the standard segment score threshold. For example, the ratio of the precision weight to the recall weight (i.e., the first weight ratio) is 5:1. Similarly, the standard segment score is used as the target standard segment score threshold. The weighted values ​​of precision and recall are calculated according to a second weight ratio. The target standard segment score threshold corresponding to the maximum weighted value is determined as the lower bound of the standard segment score threshold. For example, the ratio of the precision weight to the recall weight (i.e., the second weight ratio) is 1:1.

[0114] Accordingly, determining the lower bound and upper bound of the basic standard segment score threshold corresponding to the target segment category includes: obtaining basic standard segment samples and non-standard segment samples corresponding to the target segment category, and determining the basic standard segment scores corresponding to the basic standard segment samples and non-standard segment samples; using the basic standard segment scores as the target basic standard segment score threshold, calculating the weighted value of precision and recall according to the third weight ratio, and determining the target basic standard segment score threshold corresponding to the maximum weighted value as the upper bound of the basic standard segment score threshold; using the basic standard segment scores as the target basic standard segment score threshold, calculating the weighted value of precision and recall according to the fourth weight ratio, and determining the target basic standard segment score threshold corresponding to the maximum weighted value as the lower bound of the basic standard segment score threshold; wherein, the third weight ratio and the fourth weight ratio are the ratio of the weight of precision to the weight of recall, and the third weight ratio is greater than or equal to the fourth weight ratio.

[0115] In practice, for the segment samples corresponding to the target segment category, standard segment samples are removed. That is, the upper and lower bounds of the basic standard segment score threshold are determined using basic standard segment samples and non-standard segment samples. The basic standard segment score is used as the target basic standard segment score threshold. The weighted values ​​of precision and recall are calculated according to the third weight ratio. The target basic standard segment score threshold corresponding to the maximum weighted value is determined as the upper bound of the basic standard segment score threshold. For example, the ratio of the precision weight to the recall weight, i.e., the third weight ratio, is 10:1. Similarly, the basic standard segment score is used as the target basic standard segment score threshold. The weighted values ​​of precision and recall are calculated according to the fourth weight ratio. The target basic standard segment score threshold corresponding to the maximum weighted value is determined as the lower bound of the basic standard segment score threshold. For example, the ratio of the precision weight to the recall weight, i.e., the fourth weight ratio, is 2:1.

[0116] Understandably, requirements will change constantly during the research and development process, and manually adjusting the upper and lower bounds of each score threshold would be a huge workload. Therefore, the above-mentioned method of automatically determining the upper and lower bounds of each score threshold can improve the algorithm iteration speed.

[0117] S206: Calculate the joint score of the target section category corresponding to the target ultrasound image based on the standard section score, basic standard section score, and joint score parameters of the target section category corresponding to the target ultrasound image; wherein, the joint score is used to comprehensively describe the standard degree and basic standard degree of the section;

[0118] In this embodiment, the predicted score used to determine whether a target slice category can be trusted may further include a joint score calculated based on the standard slice score, the basic standard slice score, and the joint score parameter. The joint score is used to comprehensively describe the standardization and basic standardization of the slice. Specifically, P = kP sp +P bsp +b, where P is the joint fraction, P sp For the standard section fraction, P bsp is the basic standard section fraction, and (k,b) is the joint fraction parameter.

[0119] In a preferred embodiment, this embodiment further includes: determining the lower bound and the upper bound of the joint fraction parameter corresponding to the target section category; and calculating the joint fraction parameter of the target section category corresponding to the target ultrasound image by interpolating between the lower bound and the upper bound of the joint fraction parameter based on the number of target frames of ultrasound images preceding the target ultrasound image whose section category is the target candidate section category.

[0120] In practice, the upper and lower bounds of the joint score parameter corresponding to each slice category are predetermined. After determining the target slice category of the target ultrasound image, the ultrasound equipment determines the upper and lower bounds of the joint score parameter corresponding to the target slice category. Based on the number of target frames of ultrasound images preceding the target ultrasound image whose slice category is a candidate slice category, interpolation is performed between the upper and lower bounds of the joint score parameter to calculate the joint score parameter of the target slice category corresponding to the target ultrasound image. The calculation method here is similar to the method of calculating the standard slice score threshold and the basic standard slice score threshold mentioned above, and will not be repeated here.

[0121] It should be noted that the upper and lower bounds of the joint score parameters corresponding to each slice category can be manually set according to the actual situation, or they can be automatically searched using slice samples of each slice category. Using the aforementioned target section categories as an example, determining the lower bound and upper bound of the joint fraction parameter corresponding to the target section category includes: obtaining target section samples whose sum of standard section score and basic standard section score corresponding to the candidate section category is greater than or equal to a preset value; determining a first target linear function satisfying a first condition and a second target linear function satisfying a second condition in a coordinate system containing the coordinate points corresponding to the target section samples; wherein, based on the standard section score and basic standard section score of the target section samples, the coordinate points corresponding to the target section samples in the coordinate system are determined, the first condition includes that the sum of the distances between the coordinate points corresponding to all the target section samples and the first target linear function is minimized and that the basic standard section scores corresponding to all the non-standard section samples are located at the function value of the first target linear function, and the second condition includes that the sum of the distances between the coordinate points corresponding to all the target section samples and the second target linear function is minimized; the parameters of the first target linear function are determined as the upper bound of the joint fraction parameter, and the parameters of the second target linear function are determined as the lower bound of the joint fraction parameter.

[0122] In specific implementation, target slice samples are obtained where the sum of the standard slice score and the basic standard slice score corresponding to the candidate slice category is greater than or equal to a preset value. For example, target samples where the sum of the standard slice score and the basic standard slice score corresponding to the candidate slice category is greater than or equal to 0.4 are obtained. A coordinate system is constructed with the standard slice score on the horizontal axis and the basic standard slice score on the vertical axis. The coordinate points corresponding to all target slice samples and non-standard slice samples are plotted in the coordinate system. A first objective linear function is constructed such that the sum of the distances between the coordinate points corresponding to all target slice samples and the first objective linear function is minimized. Simultaneously, the constraint condition is that the coordinate points corresponding to all non-standard slice samples are located below the first objective linear function. The parameters of the first objective linear function are then solved as the upper bound of the joint score parameters. The objective function is:

[0123]

[0124] The constraint is: subject to [P′] sp 1][kb] T ≥P′ bsp .

[0125] Where k and b are the slope and intercept of the first objective linear function, i.e., the joint fractional parameters, P sp P is the predicted score of the standard section or the basic standard section. bspFor the standard section or the basic standard section, the basic standard section prediction score, P' sp For non-standard sections or other standard sections, predict the score, P' bsp The base standard section prediction score for non-standard sections or other section models.

[0126] Furthermore, an unconstrained second objective linear function is constructed such that the sum of distances between the coordinate points corresponding to all target section samples and the second objective linear function is minimized. The parameters of the second objective linear function are then solved as the lower bound of the joint fraction parameters. The objective function is:

[0127]

[0128] Where k and b are the slope and intercept of the second objective linear function, i.e., the joint fractional parameters.

[0129] Taking the long axis section of the femur as an example, such as Figure 3 As shown, the horizontal axis represents the standard section score (SP Prob), and the vertical axis represents the basic standard section score (BSP Prob). `sp` represents the standard section, `bsp` represents the basic standard section, `nsp` represents the non-standard section, and `other` represents other sections. The two lines perpendicular to the horizontal axis represent the upper and lower bounds of the standard section score threshold, with the left line representing the lower bound and the right line representing the upper bound. The two lines parallel to the horizontal axis represent the upper and lower bounds of the basic standard section score threshold, with the lower line representing the lower bound and the upper line representing the upper bound. The two diagonal lines represent the upper and lower bounds of the joint score parameter, with the upper right diagonal line representing the upper bound and the lower left diagonal line representing the lower bound.

[0130] S207: If any predicted score is greater than or equal to the corresponding score threshold or the joint score is greater than or equal to the joint score threshold, then the target section category is determined as the final category of the target ultrasound image;

[0131] In this embodiment, the predicted scores used to determine whether a target section category can be trusted include the standard section score, the basic standard section score, and the joint score. If the standard section score of the target section category corresponding to the target ultrasound image is greater than or equal to the standard section score threshold, or the basic standard section score is greater than or equal to the basic standard section score threshold, or the joint score is greater than or equal to the joint score threshold, then the target section category is determined as the section category of the target ultrasound image. Here, the joint score threshold can be 0.

[0132] S208: The standard section score, basic standard section score, and joint score of the target section category corresponding to the target ultrasound image are used to calculate the standard score corresponding to the target section category;

[0133] The calculation of the standard score corresponding to the target section category based on the standard section score, basic standard section score, and joint score of the target section category corresponding to the target ultrasound image includes:

[0134] If the section category of the previous frame of the target ultrasound image is not the target section category, then the standard score corresponding to the target section category is initialized; if the section category of the previous frame of the target ultrasound image is the target section category, then the standard score corresponding to the target section category is obtained based on the target prediction score of the target section category corresponding to the previous frame of the target ultrasound image; a score threshold corresponding to each target prediction score of the target section category corresponding to the target ultrasound image is determined; if any prediction score is greater than or equal to the corresponding score threshold or the joint score is greater than or equal to the joint score threshold, then the standard score is accumulated by the corresponding score.

[0135] In this embodiment, if the standard section score of the target section category corresponding to the target ultrasound image is greater than or equal to the standard section score threshold, the standard score is accumulated by a first preset value. If the basic standard section score of the target section category corresponding to the target ultrasound image is greater than or equal to the basic standard section score threshold, the standard score is accumulated by a second preset value. If the joint score of the target section category corresponding to the target ultrasound image is greater than or equal to the joint score threshold, the standard score is accumulated by a third preset value. Here, the joint score threshold can be 0. When none of the above conditions are met, that is, when the standard section score is less than the standard section score threshold, the joint score is less than the joint score threshold, and the basic standard section score is less than the basic standard section score threshold, the standard score is initialized.

[0136] S209: If the standard score is greater than or equal to the standard score threshold, then the target ultrasound image is determined to be a standard section image of the target section category;

[0137] S210: If a standard section image of the target section category already exists, determine whether the target standard section score meets a preset condition; if yes, proceed to S211; wherein, the preset condition includes that the difference between the target standard section score and the standard section score of the standard section image of the target section category already identified is greater than or equal to a first preset value, or that the absolute value of the difference between the standard section score of the already identified standard section image and the target standard section score is less than the first preset value and the smoothness of the standard section score of the target ultrasound image is greater than or equal to the smoothness of the standard section score of the stored standard section image;

[0138] S211: Replace the identified standard cross-sectional image with the target ultrasound image.

[0139] Therefore, this embodiment improves the discrimination accuracy between structurally similar sections and enhances the accuracy of section category recognition by combining image information from the current frame and previous frames of the target ultrasound image. Furthermore, by comparing the predicted score of the target section category corresponding to the target ultrasound image with the score threshold of the target section category corresponding to the target ultrasound image, it determines whether the candidate section category predicted by the classification model can be trusted, further improving the accuracy of section category recognition. Moreover, this embodiment maintains a corresponding standard score for each section category to describe the accumulated standardization, avoiding the detection of occasional standard section images and improving the accuracy of standard section recognition. Simultaneously, the standard score of the section category considers both the standard section score and the basic standard section score, utilizing the continuity information in the ultrasound video to calculate the accumulated standard score of the current target ultrasound image, reducing the false alarm rate of non-standard sections and the false negative rate of standard sections, further improving the accuracy of standard section recognition. Furthermore, this embodiment captures the doctor's acquisition intention through the standard section score smoothness. Combined with the standard section score and smoothness predicted by the classification model, it determines whether to replace the standard section image. When the doctor acquires a standard section image that needs to be saved, the ultrasound device can automatically identify and replace it, eliminating the need for manual saving by the doctor and improving the efficiency of standard section image replacement. In addition to the doctor's acquisition intention (smoothness), this embodiment also considers the factor of whether the image is sufficiently standard (standard score), avoiding the situation where a less standard image is used to replace a more standard one.

[0140] The following describes a standard cross-sectional image replacement device provided in an embodiment of this application. The standard cross-sectional image replacement device described below and the standard cross-sectional image replacement method described above can be referred to each other.

[0141] See Figure 4 A structural diagram of a standard cross-sectional image replacement device is shown according to an exemplary embodiment, such as... Figure 4 As shown, it includes:

[0142] The acquisition module 401 is used to acquire a target ultrasound image from a video stream, and to acquire the target section category of the target ultrasound image and the target standard section score corresponding to the target section category;

[0143] The first judgment module 402 is used to determine whether the target ultrasound image is a standard section image of the target section category; if so, the workflow of the second judgment module 403 is started.

[0144] The second judgment module 403 is used to determine whether the target standard section score meets a preset condition, provided that there is an identified standard section image for the target section category; wherein, the preset condition includes that the difference between the target standard section score and the standard section score of the identified standard section image for the target section category is greater than or equal to a first preset value, or that the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value and the smoothness of the standard section score of the target ultrasound image is greater than or equal to the smoothness of the standard section score of the stored standard section image;

[0145] The replacement module 404 is used to replace the identified standard section image with the target ultrasound image when the target standard section score meets the preset conditions.

[0146] The standard section image replacement device in this application captures the doctor's acquisition intention by measuring the smoothness of the standard section score. It combines the standard section score predicted by the classification model to comprehensively determine whether to replace the standard section image. When the doctor acquires a standard section image that needs to be saved, the time spent on the current ultrasound image will be longer, and the standard section score will be more stable. The ultrasound equipment can automatically identify and replace it without the need for the doctor to manually save it, thus improving the replacement efficiency of the standard section image.

[0147] Based on the above embodiments, as a preferred implementation, the second judgment module 403 is specifically used to: determine whether the difference between the target standard section score and the standard section score of the standard section image of the target section category is greater than or equal to a first preset value; if the difference between the target standard section score and the standard section score of the standard section image of the target section category is greater than or equal to the first preset value, then determine that the target standard section score meets a preset condition; if the difference between the target standard section score and the standard section score of the standard section image of the target section category is less than the first preset value, then determine whether the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value; if the difference between the standard section score of the identified standard section image and the standard section score of the target standard section image is less than the first preset value, then determine whether the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value; if the difference between the standard section score of the identified standard section image and the standard section score of the target standard section image is less than the first preset value, then determine whether the absolute value of the difference between the standard section score of the target standard section image and the standard section score of the target standard section image is less than the first preset value; if the difference between the standard section score of the identified standard section image and the standard section score of the target standard section image is greater than or equal to .... If the absolute value of the difference between the surface fractions is greater than or equal to the first preset value, then the target standard surface fraction is determined not to meet the preset condition. If the absolute value of the difference between the standard surface fraction of the identified standard surface image and the target standard surface fraction is less than the first preset value, then the smoothness of the standard surface fraction of the target ultrasound image is calculated, and it is determined whether the smoothness of the standard surface fraction of the target ultrasound image is greater than or equal to the smoothness of the standard surface fraction of the stored standard surface image. If the smoothness of the standard surface fraction of the target ultrasound image is greater than or equal to the smoothness of the standard surface fraction of the stored standard surface image, then the target standard surface fraction is determined to meet the preset condition. If the smoothness of the standard surface fraction of the target ultrasound image is less than the smoothness of the standard surface fraction of the stored standard surface image, then the target standard surface fraction is determined not to meet the preset condition.

[0148] Based on the above embodiments, as a preferred embodiment, the second judgment module 403 is specifically used to: calculate the standard section score smoothness of the target ultrasound image based on the standard section score of the target section category corresponding to the ultrasound images of a preset number of consecutive frames preceding the target ultrasound image and the standard section score of the target section category corresponding to the target ultrasound image.

[0149] Based on the above embodiments, as a preferred implementation, the first judgment module 403 is specifically used to: determine whether the standard section score is greater than or equal to a second preset value; if so, determine that the target ultrasound image is a standard section image of the target section category.

[0150] Based on the above embodiments, as a preferred implementation, the first determination module 403 includes:

[0151] The calculation unit is used to calculate the standard score corresponding to the target section category based on the target prediction score of the target section category corresponding to the target ultrasound image;

[0152] The determination unit is used to determine that the target ultrasound image is a standard section image of the target section category when the standard score is greater than or equal to the standard threshold.

[0153] Specifically, the calculation unit is used to: if the section category of the previous frame ultrasound image of the target ultrasound image is the target section category, then obtain the standard score corresponding to the target section category calculated based on the target prediction score of the target section category corresponding to the previous frame ultrasound image of the target ultrasound image; if the section category of the previous frame ultrasound image of the target ultrasound image is not the target section category, then initialize the standard score corresponding to the target section category; if the target prediction score of the target section category corresponding to the target ultrasound image is greater than or equal to a score threshold, then accumulate the standard score.

[0154] Based on the above embodiments, as a preferred implementation, the target prediction score includes any one or a combination of any of the target standard section score, the target basic standard section score, and the target joint score, wherein the joint score is used to comprehensively describe the standard degree and basic standard degree of the section;

[0155] Accordingly, the device also includes:

[0156] The first determining module is used to determine the score threshold corresponding to the predicted score of each target in the target section category corresponding to the target ultrasound image;

[0157] The calculation unit is specifically used to: if the target prediction score of any target section category corresponding to the target ultrasound image is greater than or equal to the corresponding score threshold, then the standard score is accumulated by the corresponding score.

[0158] Based on the above embodiments, as a preferred embodiment, the acquisition module 401 is specifically used for: inputting the target ultrasound image into a classification model, obtaining the target section category of the target ultrasound image from the output of the classification model; obtaining the target standard section score corresponding to the target section category from the output of the classification model, and / or obtaining the target basic standard section score corresponding to the target section category from the output of the classification model, and / or calculating the target joint score based on the joint score parameter of the target standard section score, the target basic standard section score, and the target section category corresponding to the target ultrasound image.

[0159] Based on the above embodiments, as a preferred embodiment, it further includes:

[0160] The second determining module is used to determine the lower bound and the upper bound of the joint fraction parameter corresponding to the target section category;

[0161] The first calculation module is used to calculate the joint score parameter of the target section category corresponding to the target ultrasound image by interpolating between the lower bound of the joint score parameter and the upper bound of the joint score parameter based on the number of target frames of ultrasound images preceding the target ultrasound image whose section category is the target candidate section category.

[0162] Based on the above embodiments, as a preferred implementation, the second determining module is specifically used for: obtaining target section samples whose sum of standard section score and basic standard section score corresponding to the candidate section category is greater than or equal to a preset value; determining a first target linear function satisfying a first condition and a second target linear function satisfying a second condition in a coordinate system containing the coordinate points corresponding to the target section samples; wherein, the coordinate points corresponding to the target section samples in the coordinate system are determined based on the standard section score and basic standard section score of the target section samples, the first condition includes that the sum of the distances between the coordinate points corresponding to all the target section samples and the first target linear function is the smallest and that the basic standard section scores corresponding to all the non-standard section samples are located at the function value of the first target linear function, the second condition includes that the sum of the distances between the coordinate points corresponding to all the target section samples and the second target linear function is the smallest; the parameters of the first target linear function are determined as the upper bound of the joint fraction parameter, and the parameters of the second target linear function are determined as the lower bound of the joint fraction parameter.

[0163] Based on the above embodiments, as a preferred implementation, the first determining module is specifically used to: determine the lower threshold and upper threshold of the target standard section score or the target basic standard section score corresponding to the target section category; calculate the score threshold corresponding to the target standard section score or the target basic standard section score by interpolating between the lower threshold and the upper threshold based on the number of target frames of ultrasound images with the section category of the target section image preceding the target ultrasound image; wherein, the score threshold is negatively correlated with the number of target frames.

[0164] Based on the above embodiments, as a preferred implementation, the first determining module is specifically used for: obtaining standard and non-standard segment samples corresponding to the target segment category, and determining the standard segment scores corresponding to the standard and non-standard segment samples; using the standard segment score as a target standard segment score threshold, calculating the weighted value of precision and recall according to a first weight ratio, and determining the target standard segment score threshold corresponding to the maximum weighted value as the upper threshold of the target standard segment score; using the standard segment score as a target standard segment score threshold, calculating the weighted value of precision and recall according to a second weight ratio, and determining the target standard segment score threshold corresponding to the maximum weighted value as the lower threshold of the target standard segment score; wherein, the first weight ratio and the second weight ratio are the ratio of the weight of precision to the weight of recall, and the first weight ratio is greater than or equal to the second weight ratio.

[0165] Based on the above embodiments, as a preferred implementation, the first determining module is specifically used for: obtaining basic standard section samples and non-standard section samples corresponding to the target section category, and determining the basic standard section scores corresponding to the basic standard section samples and non-standard section samples; using the basic standard section scores as the target basic standard section score threshold, calculating the weighted value of precision and recall according to the third weight ratio, and determining the target basic standard section score threshold corresponding to the maximum weighted value as the upper threshold of the basic target standard section score; using the basic standard section scores as the target basic standard section score threshold, calculating the weighted value of precision and recall according to the fourth weight ratio, and determining the target basic standard section score threshold corresponding to the maximum weighted value as the lower threshold of the basic target standard section score; wherein, the third weight ratio and the fourth weight ratio are the ratio of the weight of precision to the weight of recall, and the third weight ratio is greater than or equal to the fourth weight ratio.

[0166] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0167] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide an ultrasonic device. Figure 5 This is a structural diagram illustrating an ultrasonic device according to an exemplary embodiment, such as... Figure 5 As shown, the ultrasound equipment includes:

[0168] Communication interface 1 enables information exchange with other devices, such as network devices;

[0169] Processor 2 is connected to communication interface 1 to enable information interaction with other devices. When running a computer program, it executes the standard cross-sectional image replacement method provided by one or more of the aforementioned technical solutions. The computer program is stored in memory 3.

[0170] Of course, in practical applications, the various components of the ultrasonic equipment are coupled together through bus system 4. It can be understood that bus system 4 is used to achieve communication and connection between these components. In addition to the data bus, bus system 4 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 5 The general will label all buses as Bus System 4.

[0171] The memory 3 in this embodiment is used to store various types of data to support the operation of the ultrasound device. Examples of such data include any computer program used to operate the ultrasound device.

[0172] It is understood that memory 3 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 3 described in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.

[0173] The methods disclosed in the embodiments of this application can be applied to processor 2, or implemented by processor 2. Processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 2 or by instructions in the form of software. The processor 2 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 2 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 3. Processor 2 reads the program in memory 3 and completes the steps of the aforementioned method in combination with its hardware.

[0174] When processor 2 executes the program, it implements the corresponding processes in the various methods of the embodiments of this application. For the sake of brevity, these will not be described in detail here.

[0175] In an exemplary embodiment, this application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a memory 3 that stores a computer program, which can be executed by a processor 2 to complete the steps described in the aforementioned method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.

[0176] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.

[0177] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an ultrasound device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.

[0178] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A standard cross-sectional image replacement method, characterized in that, include: Obtain a target ultrasound image from the video stream, and obtain the target section category of the target ultrasound image and the target standard section score corresponding to the target section category; Determine whether the target ultrasound image is a standard section image of the target section category; If the target ultrasound image is a standard section image of the target section category, then, assuming that there is an identified standard section image of the target section category, it is determined whether the difference between the target standard section score and the standard section score of the identified standard section image of the target section category is greater than or equal to a first preset value. If the difference between the target standard section score and the standard section score of the standard section image already identified in the target section category is greater than or equal to the first preset value, then the identified standard section image is replaced with the target ultrasound image; If the difference between the target standard section score and the standard section score of the standard section image already identified for the target section category is less than the first preset value, then it is determined whether the absolute value of the difference between the standard section score of the already identified standard section image and the target standard section score is less than the first preset value. If the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value, then the smoothness of the standard section score of the target ultrasound image is calculated, and it is determined whether the smoothness of the standard section score of the target ultrasound image is greater than or equal to the smoothness of the standard section score of the identified standard section image. If the standard section fractional smoothness of the target ultrasound image is greater than or equal to the standard section fractional smoothness of the identified standard section image, then the identified standard section image is replaced with the target ultrasound image.

2. The standard cross-sectional image replacement method according to claim 1, characterized in that, After determining whether the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is less than the first preset value, the method further includes: If the absolute value of the difference between the standard section score of the identified standard section image and the target standard section score is greater than or equal to the first preset value, then the target ultrasound image is discarded. After determining whether the standard section fractional smoothness of the target ultrasound image is greater than or equal to the standard section fractional smoothness of the identified standard section image, the method further includes: If the standard section fractional smoothness of the target ultrasound image is less than that of the already identified standard section image, then the target ultrasound image is discarded.

3. The standard cross-sectional image replacement method according to claim 1, characterized in that, The calculation of the standard section fractional smoothness of the target ultrasound image includes: The standard section score smoothness of the target ultrasound image is calculated based on the standard section score of the target section category corresponding to the ultrasound images of the preceding preset number of frames and the standard section score of the target ultrasound image corresponding to the target section category.

4. The standard cross-sectional image replacement method according to claim 1, characterized in that, The step of determining whether the target ultrasound image is a standard section image of the target section category includes: Determine whether the standard section fraction is greater than or equal to the second preset value; If so, the target ultrasound image is determined to be a standard section image of the target section category.

5. The standard cross-sectional image replacement method according to claim 1, characterized in that, The step of determining whether the target ultrasound image is a standard section image of the target section category includes: Calculate the standard score corresponding to the target section category based on the target prediction score of the target section category corresponding to the target ultrasound image; If the standard score is greater than or equal to the standard score threshold, then the target ultrasound image is determined to be a standard section image of the target section category; The calculation of the standard score corresponding to the target section category based on the target prediction score of the target section category corresponding to the target ultrasound image includes: if the section category of the previous frame ultrasound image of the target ultrasound image is not the target section category, then the standard score corresponding to the target section category is initialized; if the section category of the previous frame ultrasound image of the target ultrasound image is the target section category, then the standard score corresponding to the target section category calculated based on the target prediction score of the target section category corresponding to the previous frame ultrasound image of the target ultrasound image is obtained; and when the target prediction score of the target section category corresponding to the target ultrasound image is greater than or equal to a score threshold, the standard score is accumulated.

6. The standard cross-sectional image replacement method according to claim 5, characterized in that, The target prediction score includes any one or a combination of several of the target standard section score, the target basic standard section score, and the target joint score. The joint score is used to comprehensively describe the standard degree and basic standard degree of the section. Accordingly, if the target prediction score of the target section category corresponding to the target ultrasound image is greater than or equal to the score threshold, the standard score is accumulated, including: Determine the score threshold corresponding to the predicted score of each target in the target section category corresponding to the target ultrasound image; If the target prediction score of any target section category corresponding to the target ultrasound image is greater than or equal to the corresponding score threshold, then the standard score is accumulated by the corresponding score.

7. The standard cross-sectional image replacement method according to claim 6, characterized in that, The acquisition of the target section category and the target prediction score of the target section category from the target ultrasound image includes: The target ultrasound image is input into a classification model, and the target section category of the target ultrasound image is obtained from the output of the classification model. Obtain the target standard section score corresponding to the target section category from the output of the classification model, and / or obtain the target basic standard section score corresponding to the target section category from the output of the classification model, and / or calculate the target joint score based on the target standard section score, the target basic standard section score and the joint score parameter of the target section category corresponding to the target ultrasound image.

8. The standard cross-sectional image replacement method according to claim 7, characterized in that, Also includes: Determine the lower bound and upper bound of the joint fraction parameter corresponding to the target section category; Based on the number of target frames in the ultrasound images preceding the target ultrasound image that have the target section category, interpolation is performed between the lower bound of the joint fraction parameter and the upper bound of the joint fraction parameter to calculate the joint fraction parameter of the target section category corresponding to the target ultrasound image.

9. The standard cross-sectional image replacement method according to claim 8, characterized in that, Determining the lower bound and upper bound of the joint score parameter corresponding to the target section category includes: Obtain target section samples whose sum of standard section score and basic standard section score corresponding to the target section category is greater than or equal to a preset value; In a coordinate system containing the coordinate points corresponding to the target section sample, a first target linear function satisfying a first condition and a second target linear function satisfying a second condition are determined; wherein, the coordinate points corresponding to the target section sample in the coordinate system are determined based on the standard section fraction and the basic standard section fraction of the target section sample; the first condition includes that the sum of the distances between all the coordinate points corresponding to the target section sample and the first target linear function is minimized and that the basic standard section fractions corresponding to all non-standard section samples are located below the function value of the first target linear function; the second condition includes that the sum of the distances between all the coordinate points corresponding to the target section sample and the second target linear function is minimized. The parameters of the first objective linear function are determined as the upper bound of the joint fractional parameters, and the parameters of the second objective linear function are determined as the lower bound of the joint fractional parameters.

10. The standard cross-sectional image replacement method according to claim 6, characterized in that, Determining the score threshold corresponding to the predicted score of each object in the target section category corresponding to the target ultrasound image includes: Determine the lower and upper threshold bounds of the target standard section score or the target basic standard section score corresponding to the target section category; Based on the number of target frames in the ultrasound images preceding the target ultrasound image that have the same section category as the target section, interpolation is performed between the lower threshold and the upper threshold to calculate the score threshold corresponding to the target standard section score or the target basic standard section score; wherein, the score threshold is negatively correlated with the number of target frames.

11. The standard cross-sectional image replacement method according to claim 10, characterized in that, Determining the lower and upper threshold bounds of the target standard section score corresponding to the target section category includes: Obtain standard and non-standard section samples corresponding to the target section category, and determine the standard section score corresponding to the standard and non-standard section samples; The standard segment score is used as the target standard segment score threshold. The weighted value of precision and recall is calculated according to the first weight ratio. The target standard segment score threshold corresponding to the maximum weighted value is determined as the upper bound of the target standard segment score threshold. The standard segment score is used as the target standard segment score threshold. The weighted value of precision and recall is calculated according to the second weight ratio. The target standard segment score threshold corresponding to the maximum weighted value is determined as the lower bound of the target standard segment score threshold. Wherein, the first weight ratio and the second weight ratio are the ratios of the weight of precision to the weight of recall, and the first weight ratio is greater than or equal to the second weight ratio.

12. The standard cross-sectional image replacement method according to claim 10, characterized in that, Determining the lower and upper threshold bounds of the target basic standard section score corresponding to the target section category includes: Obtain basic standard section samples and non-standard section samples corresponding to the target section category, and determine the basic standard section scores corresponding to the basic standard section samples and non-standard section samples; The basic standard segment score is used as the target basic standard segment score threshold. The weighted value of precision and recall is calculated according to the third weight ratio. The target basic standard segment score threshold corresponding to the maximum weighted value is determined as the upper bound of the target basic standard segment score threshold. The basic standard segment score is used as the target basic standard segment score threshold. The weighted value of precision and recall is calculated according to the fourth weight ratio. The target basic standard segment score threshold corresponding to the maximum weighted value is determined as the lower bound of the target basic standard segment score threshold. Wherein, the third weight ratio and the fourth weight ratio are the ratios of the weight of precision to the weight of recall, and the third weight ratio is greater than or equal to the fourth weight ratio.

13. A standard cross-sectional image replacement device, characterized in that, include: The acquisition module is used to acquire a target ultrasound image from a video stream, and to acquire the target section category of the target ultrasound image and the target standard section score corresponding to the target section category; The first judgment module is used to determine whether the target ultrasound image is a standard section image of the target section category; if so, the workflow of the second judgment module is started. The second judgment module is used to determine, under the premise that there is an identified standard section image for the target section category, whether the difference between the target standard section score and the standard section score of the identified standard section image for the target section category is greater than or equal to a first preset value; if the difference between the target standard section score and the standard section score of the identified standard section image for the target section category is greater than or equal to the first preset value, then the workflow of the replacement module is started. If the difference between the target standard section score and the standard section score of the already identified standard section image of the target section category is less than the first preset value, then it is determined whether the absolute value of the difference between the standard section score of the already identified standard section image and the target standard section score is less than the first preset value; if the absolute value of the difference between the standard section score of the already identified standard section image and the target standard section score is less than the first preset value, then the standard section score smoothness of the target ultrasound image is calculated, and it is determined whether the standard section score smoothness of the target ultrasound image is greater than or equal to the standard section score smoothness of the already identified standard section image; if the standard section score smoothness of the target ultrasound image is greater than or equal to the standard section score smoothness of the already identified standard section image, then the workflow of the replacement module is started; The replacement module is used to replace the identified standard cross-sectional image with the target ultrasound image.

14. An ultrasonic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the standard cross-sectional image replacement method as described in any one of claims 1 to 12 when executing the computer program.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the standard cross-sectional image replacement method as described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Method and device for determining optimal standard section of fetal

    CN112155602A