Ultrasonic image desensitization method and device, electronic equipment and storage medium
The neural network model is used to extract and remove non-imaging area information in ultrasound images, which solves the problem of poor extraction of ultrasound imaging areas in the existing technology and achieves a more efficient ultrasound image desensitization effect. It is suitable for multiple image formats and Reduce noise interference.
Patent Information
- Application Number
- CN202310194225.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-03
AI Technical Summary
In the process of ultrasonic image desensitization using the existing technology, the extraction effect of the ultrasonic imaging area is poor, especially for non-DICOM format images and interference information containing noise in the image, which is difficult to effectively process.
Using the neural network model, by determining the shape of the ultrasound imaging area in the ultrasound image, and selecting the corresponding neural network model (such as the Yolo model or UNet model) based on the shape, the non-imaging area information is extracted and removed from the ultrasound image to realize the ultrasound image of desensitization.
It improves the extraction accuracy and desensitization effect of the ultrasound imaging area, is suitable for various ultrasound image formats, reduces noise interference, and enhances image format compatibility.
Smart Images

Figure CN118586010A
Abstract
Description
Technical Field
[0001] The present application relates to the field of ultrasound image desensitization, and in particular to an ultrasound image desensitization method, device, electronic device and computer-readable storage medium. Background Art
[0002] Ultrasound images usually contain ultrasound imaging areas and other information areas. The ultrasound imaging area contains specific ultrasound image content and is the main area for image algorithm development and doctor diagnosis. Other information areas usually contain sensitive information such as patient privacy information or equipment parameters. In order to protect patient privacy, reduce noise in image data and avoid interference with doctor diagnosis, it is usually necessary to remove other information areas in the ultrasound image and only retain the ultrasound imaging area, that is, to "desensitize" the ultrasound image. In related technologies, the desensitization of ultrasound images is mainly achieved through traditional image processing algorithms based on the differences in pixel values of various parts of the image. However, the related technologies have poor desensitization effects on ultrasound images and have defects such as being based on specific file formats and incomplete retention of ultrasound imaging areas. Summary of the invention
[0003] The purpose of this application is to provide an ultrasound image desensitization method, device, electronic device and computer-readable storage medium, which can use a neural network model to extract an ultrasound imaging area from an ultrasound image, thereby improving the extraction accuracy of the ultrasound imaging area.
[0004] In order to solve the above technical problems, the present application provides an ultrasound image desensitization method, comprising:
[0005] Acquire an ultrasonic image, and determine a shape corresponding to an ultrasonic imaging area in the ultrasonic image;
[0006] Determining a neural network model used for desensitization according to the shape;
[0007] The neural network model is used to determine the ultrasound imaging area in the ultrasound image, and image information outside the ultrasound imaging area is removed to complete desensitization of the ultrasound image.
[0008] Optionally, determining a shape corresponding to the ultrasound imaging area in the ultrasound image includes:
[0009] The shape corresponding to the ultrasonic imaging area is determined according to the ultrasonic scanning mode and / or the probe array element arrangement used to generate the ultrasonic image.
[0010] Optionally, determining a shape corresponding to the ultrasound imaging area in the ultrasound image includes:
[0011] The shape corresponding to the ultrasonic imaging area is determined according to the shape information input by the user.
[0012] Optionally, before removing the image information outside the ultrasound imaging area, the method further includes:
[0013] Marking the ultrasound imaging area in the ultrasound image based on the prediction box output by the neural network model, and outputting the marked ultrasound image;
[0014] When receiving a modification instruction, adjusting the prediction box corresponding to the ultrasound imaging area according to the modification instruction, re-marking the ultrasound imaging area in the ultrasound image according to the adjusted prediction box, and outputting the re-marked ultrasound image;
[0015] When a confirmation instruction is received, the step of removing the image information outside the ultrasound imaging area is performed based on the prediction frame.
[0016] Optionally, after removing the image information outside the ultrasound imaging area, the method further includes:
[0017] The ultrasonic image retaining only the image information of the ultrasonic imaging area is saved.
[0018] Optionally, determining a neural network model used for desensitization according to the shape includes:
[0019] When it is determined that the shape is a rectangle, using the target detection network model as the neural network model;
[0020] When it is determined that the shape is not a rectangle, the image segmentation network model is used as the neural network model.
[0021] Optionally, the target detection network model is a Yolo model, and determining the ultrasound imaging area in the ultrasound image using the neural network model includes:
[0022] Using the Yolo model to perform target recognition in the ultrasound image, and generate multiple target prediction boxes corresponding to the ultrasound imaging area;
[0023] A non-maximum suppression algorithm is used to determine the best prediction box among the multiple target prediction boxes, and an image area surrounded by the best prediction box is determined as the ultrasonic imaging area.
[0024] Optionally, the image segmentation network model is a UNet model, and determining the ultrasound imaging area in the ultrasound image using the neural network model includes:
[0025] The UNet model is used to determine a polygonal prediction box corresponding to the ultrasound imaging area in the ultrasound image.
[0026] The present application also provides an ultrasonic image desensitization device, comprising:
[0027] A region shape determination module, used to acquire an ultrasonic image and determine a shape corresponding to an ultrasonic imaging region in the ultrasonic image;
[0028] A model determination module, used to determine a corresponding neural network model according to the shape;
[0029] A desensitization module is used to determine the ultrasound imaging area in the ultrasound image using the neural network model, and remove image information outside the ultrasound imaging area to complete the desensitization of the ultrasound image.
[0030] The present application also provides an electronic device, comprising:
[0031] Memory for storing computer programs;
[0032] A processor is used to implement the ultrasound image desensitization method as described above when executing the computer program.
[0033] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the ultrasound image desensitization method as described above is implemented.
[0034] The present application provides an ultrasound image desensitization method, comprising: acquiring an ultrasound image, and determining a shape corresponding to an ultrasound imaging area in the ultrasound image; determining a neural network model used for desensitization according to the shape; determining the ultrasound imaging area in the ultrasound image using the neural network model, and removing image information outside the ultrasound imaging area to complete desensitization of the ultrasound image.
[0035] It can be seen that after acquiring the ultrasonic image, the present application can first determine the shape corresponding to the ultrasonic imaging area in the ultrasonic image, and can determine the corresponding neural network model according to the shape. In other words, the present application will use the neural network model to extract the ultrasonic imaging area from the ultrasonic image. Considering that the neural network model has a good recognition and segmentation effect on the target, the present application can improve the extraction accuracy of the ultrasonic imaging area of the ultrasonic image based on the neural network model; at the same time, considering that different neural network models have different extraction effects on ultrasonic imaging areas of different shapes, the present application can predetermine the shape of the area, and use the neural network model corresponding to the shape to extract the area in the ultrasonic image, thereby further improving the extraction accuracy of the ultrasonic imaging area of the ultrasonic image and improving the desensitization effect of the ultrasonic image. The present application also provides an ultrasonic image desensitization device, an electronic device, and a computer-readable storage medium, which have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0037] Figure 1 A schematic diagram of an ultrasound image provided by an embodiment of the present application;
[0038] Figure 2 A flowchart of an ultrasound image desensitization method provided in an embodiment of the present application;
[0039] Figure 3 A flowchart of extracting an ultrasound imaging area using a Yolo model provided in an embodiment of the present application;
[0040] Figure 4 A flowchart of extracting an ultrasound imaging area using a UNet model provided in an embodiment of the present application;
[0041] Figure 5 A structural block diagram of an ultrasonic image desensitization device provided in an embodiment of the present application;
[0042] Figure 6 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0044] Ultrasound images usually contain ultrasound imaging areas and other information areas. Figure 1 , Figure 1A schematic diagram of an ultrasound image provided in an embodiment of the present application, wherein the ultrasound imaging area 10 contains specific ultrasound image content, which is the area mainly targeted by the doctor's diagnosis; other information areas 11, 12 and 13 usually contain sensitive information such as patient privacy information or equipment parameters. In the related art, the desensitization of the ultrasound image is mainly achieved by extracting the ultrasound imaging area 10. However, the extraction effect of the ultrasound imaging area 10 in the related art is not good. For example, the DICOM image desensitization method (DICOM, Digital Imaging and Communications in Medicine) can only desensitize ultrasound images in DICOM format, but cannot desensitize ultrasound images in common formats such as PNG (Portable Network Graphics) and BMP (Bitmap). At the same time, after the DICOM image desensitization method separates the layer containing the ultrasound imaging area 10 from the sensitive information, there is still interference information such as annotations and noise in the layer, and then it is still necessary to use other methods to desensitize the ultrasound imaging area 10. For another example, traditional image processing methods usually use the BFS (Breadth First Search) algorithm and the connected domain principle to mark and extract the ultrasonic imaging area based on the difference in image pixel values, and to mark the pixel points with similar pixel values and adjacent positions. However, this method has high requirements on image quality, and has poor desensitization effect on incomplete and unclear imaging areas, and cannot restore the complete ultrasonic imaging area.
[0045] In view of this, the present application can provide an ultrasonic image desensitization method, which can use a neural network model to extract an ultrasonic imaging area from an ultrasonic image, thereby improving the extraction accuracy of the ultrasonic imaging area. It should be noted that the present application does not limit the execution subject of the present method, for example, it can be an ultrasonic device, a personal computer, a mobile device, an ultrasonic imaging workstation, etc., which can be set according to actual application requirements.
[0046] Please refer to Figure 2 , Figure 2 A flowchart of an ultrasound image desensitization method provided in an embodiment of the present application, the method may include:
[0047] S201: Acquire an ultrasonic image, and determine a shape corresponding to an ultrasonic imaging region in the ultrasonic image.
[0048] First of all, it should be noted that the embodiments of the present application do not limit the specific image format of the ultrasound image, for example, it can be a DICOM format, or a common image format such as PNG, BMP, etc. In other words, the present method is applicable to desensitization of ultrasound images of various formats, and has the advantage of good image format compatibility.
[0049] Furthermore, the method aims to extract an ultrasonic imaging region from an ultrasonic image using a neural network model to improve the extraction accuracy of the region. However, the shapes of ultrasonic imaging regions vary, such as sectors, rectangles, etc., and different neural network models have different extraction effects on ultrasonic imaging regions of different shapes. In order to effectively ensure the extraction accuracy of the region, the embodiment of the present application may first determine the shape of the ultrasonic imaging region contained in the image after acquiring the ultrasonic image, and use the neural network model corresponding to the shape to perform region extraction.
[0050] It should be noted that the embodiments of the present application do not limit the specific method of determining the shape of the ultrasound imaging area. For example, the user can directly determine the shape of the ultrasound imaging area based on the image observation results, and input the shape into the device that executes the method. Then the device only needs to determine the shape of the ultrasound imaging area according to the shape information input by the user.
[0051] Based on this, determining the shape corresponding to the ultrasound imaging area in the ultrasound image may include:
[0052] Step 11: Determine the shape corresponding to the ultrasound imaging area according to the shape information input by the user.
[0053] Of course, the shape of the ultrasound imaging area can also be determined according to the ultrasound scanning mode or probe array element arrangement used to generate the ultrasound image. For example, ultrasound equipment usually includes two ultrasound scanning modes, namely, B-type ultrasound mode and M-type ultrasound mode. In the B-type ultrasound mode, the image is a tissue cross-section image, and the image is a fan or cone shape under horizontal observation; in the M-type ultrasound mode, the image is a rectangular image under longitudinal observation, and the shape of the current ultrasound imaging area can be determined in real time according to the real-time scanning mode signal inside the ultrasound equipment during real-time scanning, thereby realizing real-time switching between different neural network models. For another example, the probe of the ultrasound equipment can be divided into linear array, convex array, and phased array probes according to the arrangement of the tiny array elements on its head, wherein the scanning image of the linear array probe is a rectangular image, the scanning image of the convex array probe is a fan-shaped image, and the scanning image of the phased array probe is a cone-shaped image. In real-time scanning, the shape of the current ultrasound imaging area can be determined according to the real-time probe type signal inside the ultrasound equipment, thereby realizing switching between different neural network models. Of course, in actual application, the shape of the ultrasound imaging area can also be determined based on the ultrasound scanning mode and probe array element arrangement used to generate the ultrasound image, and can be set according to actual application requirements. It is worth pointing out that the method of determining the shape of the ultrasound imaging area based on the ultrasound scanning mode or the probe array element arrangement can also be applied to the desensitization scenario of non-real-time scanning. For example, when starting an ultrasound scan, the user usually selects the ultrasound scanning mode and the probe model. The probe type (i.e., the probe array element arrangement method) can be clarified through the probe model. When the ultrasound scanning operation has been frozen and the ultrasound image has been saved, the saved ultrasound image is usually associated with information such as the ultrasound scanning mode and the probe type. At this time, if the stored ultrasound image is to be desensitized, the shape of the ultrasound imaging area corresponding to the image can be determined based on the ultrasound scanning mode and probe model and other information associated with it.
[0054] Based on this, determining the shape corresponding to the ultrasound imaging area in the ultrasound image may include:
[0055] Step 21: Determine the shape corresponding to the ultrasound imaging area according to the ultrasound scanning mode and / or probe array element arrangement used to generate the ultrasound image.
[0056] It should be noted that the embodiments of the present application do not limit the method for determining the ultrasound scanning mode and the probe array element arrangement, and for example, the confirmation can be made according to the ultrasound scanning mode and / or probe model (which can correspond to the probe array element arrangement) selected by the user on the ultrasound device. The embodiments of the present application also do not limit how the user selects the ultrasound scanning mode and the probe array element arrangement on the ultrasound device, and for example, the selection can be made by touch on the display device of the device.
[0057] S202. Determine a neural network model used for desensitization according to the shape.
[0058] It should be noted that the embodiments of the present application do not limit the specific neural network model used. For example, an image segmentation network model commonly used in image segmentation can be used, and a target detection network model can also be used. The embodiments of the present application do not limit the correspondence between the region shape and the neural network model. For example, the image segmentation network model usually has a good segmentation effect on polygons, but a poor segmentation effect on rectangular ultrasound imaging areas; and the target detection network model uses a rectangular frame to mark the target, which just matches the shape of the rectangular area, that is, the segmentation effect of the rectangular ultrasound imaging area is better. Therefore, when the shape of the ultrasound imaging area is determined to be a rectangle, the target detection network model can be used as the neural network model used for desensitization, and when the shape of the ultrasound imaging area is determined to be not a rectangle, but a polygon such as a fan, the image segmentation network model can be used as the neural network model used for desensitization. It is worth pointing out that the usual purpose of the target detection network model is to mark the approximate position of the target object in the image, while the embodiments of the present application use the target detection network model to accurately segment the rectangular ultrasound imaging area, that is, the use of the target detection network model in this application is significantly different from its general use.
[0059] Based on this, the neural network model used for desensitization can be determined according to the shape, including:
[0060] Step 31: When the shape is determined to be a rectangle, the target detection network model is used as a neural network model;
[0061] Step 32: When it is determined that the shape is not a rectangle, the image segmentation network model is used as a neural network model.
[0062] It should be noted that the embodiments of the present application do not limit specific target detection network models and image segmentation network models, and can be set according to actual application requirements. For example, considering that the Yolo model (You only look once, "You only look once" series model) is a lightweight target detection network model with good performance, it can not only effectively segment the ultrasound imaging area, but also be easily deployed in devices with limited computing resources. Therefore, the embodiments of the present application can use the Yolo model as the target detection network model used in this method; for another example, considering that the UNet model is a lightweight image segmentation network model with good performance, it can not only effectively segment the ultrasound imaging area, but also be easily deployed in devices with limited computing resources. Therefore, the embodiments of the present application can use the UNet model as the image segmentation network model used in this method.
[0063] S203: Determine an ultrasound imaging region in the ultrasound image using a neural network model, and remove image information outside the ultrasound imaging region to complete desensitization of the ultrasound image.
[0064] After completing the confirmation of the neural network model, the embodiment of the present application can use the model to extract the ultrasonic imaging area in the ultrasonic image. It can be understood that the neural network model will generate a prediction box in the ultrasonic image, and the image area contained in the prediction box is the ultrasonic imaging area; in addition, the extraction process of the ultrasonic imaging area by different models is not the same. For example, for the Yolo model, it can usually be used to perform target recognition in the ultrasonic image, and mark multiple candidate target prediction boxes corresponding to the ultrasonic imaging area; then, the non-maximum suppression algorithm (NMS, non-maximum suppression) can be used to determine the best prediction box in the target prediction box, and the image area formed by the best prediction box is set as the ultrasonic imaging area. It should be noted that the embodiment of the present application does not limit the specific process of target recognition by the Yolo model. The process of performing target recognition by different versions of the Yolo model may be different. At the same time, the embodiment of the present application does not limit the specific content of the non-maximum suppression algorithm, and reference may be made to the relevant technology.
[0065] Based on this, the target detection network model is a Yolo model, which uses a neural network model to determine the ultrasound imaging area in the ultrasound image, which may include:
[0066] Step 41: Use the Yolo model to perform target recognition in the ultrasound image and generate multiple target prediction boxes corresponding to the ultrasound imaging area;
[0067] Step 42: Using a non-maximum suppression algorithm, determine the best prediction box among multiple target prediction boxes, and determine the image area surrounded by the best prediction box as the ultrasound imaging area.
[0068] For another example, the UNet model can be used to fit a polygon prediction box of an ultrasound imaging region on an ultrasound image. It should be noted that the embodiment of the present application does not limit the specific process of fitting the UNet model, and reference may be made to related technologies.
[0069] Based on this, the image segmentation network model is a UNet model, which uses a neural network model to determine the ultrasound imaging area in the ultrasound image, including:
[0070] Step 51: Use the UNet model to determine the polygon prediction box corresponding to the ultrasound imaging area in the ultrasound image.
[0071] It should be noted that the embodiments of the present application do not limit the training process of the Yolo model and the UNet model. It is understandable that the training images used to train the above two models are marked with rectangular or polygonal boxes to mark the ultrasound imaging area.
[0072] Further, after the determination of the ultrasonic imaging area is completed, the embodiment of the present application can remove the image information outside the ultrasonic imaging area, and only retain the ultrasonic imaging area to complete the desensitization of the ultrasonic image. Further, after the desensitization is completed, the desensitized ultrasonic image can be further saved so that the user can obtain and use it. It can be understood that only the image information within the ultrasonic imaging area is retained in the desensitized ultrasonic image, while the image information outside the ultrasonic imaging area (such as patient privacy information or device information) has been cleared.
[0073] Based on this, after removing the image information outside the ultrasound imaging area, the following may also be included:
[0074] Step 61: Save the ultrasound image that only retains the image information of the ultrasound imaging area.
[0075] Based on the above embodiments, after acquiring the ultrasonic image, the present application can first determine the shape corresponding to the ultrasonic imaging area in the ultrasonic image, and can determine the corresponding neural network model according to the shape. In other words, the present application will use the neural network model to extract the ultrasonic imaging area from the ultrasonic image. Considering that the neural network model has good recognition and segmentation effects on the target, the present application can improve the extraction accuracy of the ultrasonic imaging area of the ultrasonic image based on the neural network model; at the same time, considering that different neural network models have different extraction effects on ultrasonic imaging areas of different shapes, the present application can predetermine the shape of the area, and use the neural network model corresponding to the shape to extract the area in the neural network model, thereby further improving the extraction accuracy of the ultrasonic imaging area of the ultrasonic image and improving the desensitization effect on the ultrasonic image.
[0076] Based on the above embodiment, considering that the ultrasound imaging area extracted by the neural network model may still be inaccurate, in order to facilitate user adjustment, the embodiment of the present application can also allow the user to manually adjust the shape and position of the area after completing the extraction of the ultrasound imaging area using the above model. Based on this, after removing the image information outside the ultrasound imaging area, the method can also include:
[0077] S301. Mark an ultrasound imaging area in the ultrasound image based on a prediction frame output by a neural network model, and output the marked ultrasound image.
[0078] As described above, the neural network model can generate a prediction box corresponding to the ultrasound imaging area to mark the location of the area in the ultrasound image.
[0079] However, the size and position of the prediction box may still have small deviations, resulting in failure to meet the higher requirements of the user. Therefore, in an embodiment of the present invention, the user can also manually adjust the prediction box. Specifically, after determining that the neural network model has completed the generation of the prediction box, the embodiment of the present invention can adjust the prediction box in the ultrasound image to re-mark the ultrasound imaging area, and output the marked ultrasound image to the display device. Therefore, this embodiment can also include the following step S302.
[0080] S302: When a modification instruction is received, the prediction box corresponding to the ultrasound imaging area is adjusted according to the modification instruction, the ultrasound imaging area is re-marked in the ultrasound image according to the adjusted prediction box, and the re-marked ultrasound image is output.
[0081] It is understandable that the modification instruction is an instruction generated by the modification operation input by the user, which can be used to adjust the size, shape and position of the prediction box corresponding to the ultrasound imaging area. It is understandable that after the prediction box adjustment is completed, in order to facilitate the user to view the adjustment results, the ultrasound imaging area needs to be re-marked in the ultrasound image according to the adjusted prediction box, and the re-marked ultrasound image needs to be re-output. It should be noted that the embodiment of the present application does not limit the specific way in which the user adjusts the ultrasound imaging area, that is, it does not limit the specific way in which the user performs the modification operation, for example, it can be adjusted through a mouse or keyboard; when the method is executed by an ultrasound device, it can also be adjusted through the trackball of the ultrasound device. The embodiment of the present application also does not limit the specific adjustable content, for example, the size, shape and position of the ultrasound imaging area can be adjusted.
[0082] S303: When a confirmation instruction is received, a step of removing image information outside the ultrasound imaging area is performed based on the prediction frame.
[0083] It can be understood that the confirmation instruction is an instruction generated by a confirmation operation input by the user. That is, receiving the confirmation instruction means that the prediction box has met the user's needs, and then the ultrasound image can be desensitized based on the prediction box.
[0084] Based on the above embodiments, after the present application uses the neural network model to complete the extraction of the ultrasound imaging area, it can also allow the user to manually adjust the shape and position of the area to facilitate user use.
[0085] The following is a detailed diagram of how to extract ultrasound imaging areas using the Yolo model and the UNet model. Figure 3 , Figure 3 A flowchart of extracting an ultrasound imaging area using a Yolo model is provided in an embodiment of the present application, and the specific process is as follows:
[0086] 1. Predict the imaging area through the detection algorithm. As shown in the figure, the algorithm predicts and outputs many possible prediction boxes;
[0087] 2. Calculate the best ROI as the predicted imaging area through NMS (non-maximum suppression). NMS eliminates similar prediction boxes and determines the best ROI (Region of Interests) by calculating whether the area of the minimum enclosing rectangle minus the overlapping part and the center point distance between the marked boxes exceeds the similarity threshold;
[0088] 3. Use the trackball of the ultrasound device or the mouse of the portable device to adjust the shape and size of the prediction box and save the desensitized image.
[0089] Please refer to Figure 4 , Figure 4 A flowchart of extracting an ultrasound imaging area using a UNet model is provided in an embodiment of the present application, and the specific process is as follows:
[0090] 1. Predict the imaging area through the segmentation algorithm, and the output is a polygon that fits the shape of the imaging area as shown in the figure;
[0091] 2. Use the trackball of the ultrasound device or the mouse of the portable device to adjust the shape and size of the prediction box and save the desensitized image.
[0092] The ultrasonic image desensitization device, electronic device and computer-readable storage medium provided in the embodiments of the present application are introduced below. The ultrasonic image desensitization device, electronic device and computer-readable storage medium described below can be referenced to each other with the ultrasonic image desensitization method described above.
[0093] Please refer to Figure 5 , Figure 5 This is a structural block diagram of an ultrasonic image desensitization device provided in an embodiment of the present application. The device may include:
[0094] The region shape determination module 501 is used to acquire an ultrasonic image and determine a shape corresponding to an ultrasonic imaging region in the ultrasonic image;
[0095] A model determination module 502, used to determine a corresponding neural network model according to the shape;
[0096] The desensitization module 503 is used to determine the ultrasound imaging area in the ultrasound image by using a neural network model, and remove the image information outside the ultrasound imaging area to complete the desensitization of the ultrasound image.
[0097] Optionally, the region shape determination module 501 may include:
[0098] The first region shape determination submodule is used to determine the shape corresponding to the ultrasound imaging region according to the ultrasound scanning mode and / or the probe array element arrangement used to generate the ultrasound image.
[0099] Optionally, the region shape determination module 501 may include:
[0100] The second region shape determination submodule is used to determine the shape corresponding to the ultrasound imaging region according to the shape information input by the user.
[0101] Optionally, the desensitization module 503 may further include:
[0102] An output submodule, used for marking an ultrasound imaging area in the ultrasound image based on a prediction frame output by the neural network model, and outputting the marked ultrasound image;
[0103] a modification submodule, configured to, when receiving a modification instruction, adjust the prediction box corresponding to the ultrasound imaging area according to the modification instruction, re-mark the ultrasound imaging area in the ultrasound image according to the adjusted prediction box, and output the re-marked ultrasound image;
[0104] The desensitization submodule is used to use the prediction box to perform the step of removing image information outside the ultrasound imaging area when a confirmation instruction is received.
[0105] Optionally, the device may further include:
[0106] The saving module is used to save the ultrasound image that only retains the image information of the ultrasound imaging area.
[0107] Optionally, the model determination module 502 may include:
[0108] A first model determination submodule is used to use the target detection network model as a neural network model when the shape is determined to be a rectangle;
[0109] The second model determination submodule is used to use the image segmentation network model as the neural network model when it is determined that the shape is not a rectangle.
[0110] Optionally, the target detection network model is a Yolo model, and the desensitization module 503 may include:
[0111] The target recognition submodule is used to perform target recognition in the ultrasound image using the Yolo model and generate multiple target prediction boxes corresponding to the ultrasound imaging area;
[0112] The first region determination submodule is used to determine the best prediction box among multiple target prediction boxes by using a non-maximum suppression algorithm, and determine the image area surrounded by the best prediction box as the ultrasonic imaging area.
[0113] Optionally, the image segmentation network model is a UNet model, and the desensitization module 503 may include:
[0114] The second region determination submodule is used to determine a polygon prediction box corresponding to the ultrasound imaging region in the ultrasound image by using the UNet model.
[0115] Please refer to Figure 6 , Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of the present application. The embodiment of the present application provides an electronic device 20, including a processor 21 and a memory 22; wherein the memory 22 is used to store a computer program; and the processor 21 is used to execute the ultrasound image desensitization method provided in the aforementioned embodiment when executing the computer program.
[0116] For the specific process of the above-mentioned ultrasound image desensitization method, reference may be made to the corresponding contents provided in the aforementioned embodiments, which will not be repeated here.
[0117] Furthermore, the memory 22 as a carrier for storing resources may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the storage method may be temporary storage or permanent storage.
[0118] In addition, the electronic device 20 also includes a power supply 23, a communication interface 24, an input / output interface 25 and a communication bus 26; wherein the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input / output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0119] Furthermore, an embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the ultrasound image desensitization method provided in the aforementioned embodiment.
[0120] For the specific process of the above-mentioned ultrasound image desensitization method, reference may be made to the corresponding contents provided in the aforementioned embodiments, which will not be repeated here.
[0121] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0122] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0123] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0124] The above is a detailed introduction to an ultrasonic image desensitization method, device, electronic device and storage medium provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A method for desensitizing an ultrasonic image, characterized in that: include: Acquire an ultrasonic image, and determine a shape corresponding to an ultrasonic imaging area in the ultrasonic image; Determining a neural network model used for desensitization according to the shape; The neural network model is used to determine the ultrasound imaging area in the ultrasound image, and image information outside the ultrasound imaging area is removed to complete desensitization of the ultrasound image.
2. The ultrasonic image desensitization method according to claim 1, characterized in that: The determining a shape corresponding to the ultrasonic imaging area in the ultrasonic image comprises: The shape corresponding to the ultrasonic imaging area is determined according to the ultrasonic scanning mode and / or the probe array element arrangement used to generate the ultrasonic image.
3. The ultrasonic image desensitization method according to claim 1, characterized in that: The determining a shape corresponding to the ultrasonic imaging area in the ultrasonic image comprises: The shape corresponding to the ultrasonic imaging area is determined according to the shape information input by the user.
4. The ultrasonic image desensitization method according to claim 1, characterized in that: Before removing the image information outside the ultrasound imaging area, the method further includes: Marking the ultrasound imaging area in the ultrasound image based on the prediction box output by the neural network model, and outputting the marked ultrasound image; When receiving a modification instruction, adjusting the prediction box corresponding to the ultrasound imaging area according to the modification instruction, re-marking the ultrasound imaging area in the ultrasound image according to the adjusted prediction box, and outputting the re-marked ultrasound image; When a confirmation instruction is received, the step of removing the image information outside the ultrasound imaging area is performed based on the prediction frame.
5. The ultrasonic image desensitization method according to claim 1, characterized in that: After removing the image information outside the ultrasound imaging area, the method further includes: The ultrasonic image retaining only the image information of the ultrasonic imaging area is saved.
6. The ultrasonic image desensitization method according to any one of claims 1 to 5, characterized in that: The neural network model used for desensitization is determined according to the shape, including: When it is determined that the shape is a rectangle, using the target detection network model as the neural network model; When it is determined that the shape is not a rectangle, the image segmentation network model is used as the neural network model.
7. The ultrasonic image desensitization method according to claim 6, characterized in that: The target detection network model is a Yolo model, and determining the ultrasound imaging area in the ultrasound image by using the neural network model includes: Using the Yolo model to perform target recognition in the ultrasound image, and generate multiple target prediction boxes corresponding to the ultrasound imaging area; A non-maximum suppression algorithm is used to determine the best prediction box among the multiple target prediction boxes, and an image area surrounded by the best prediction box is determined as the ultrasonic imaging area.
8. The ultrasonic image desensitization method according to claim 6, characterized in that: The image segmentation network model is a UNet model, and determining the ultrasound imaging area in the ultrasound image using the neural network model includes: The UNet model is used to determine a polygonal prediction box corresponding to the ultrasound imaging area in the ultrasound image.
9. An ultrasonic image desensitization device, characterized in that: include: A region shape determination module, used to acquire an ultrasonic image and determine a shape corresponding to an ultrasonic imaging region in the ultrasonic image; A model determination module, used to determine a corresponding neural network model according to the shape; A desensitization module is used to determine the ultrasound imaging area in the ultrasound image using the neural network model, and remove image information outside the ultrasound imaging area to complete the desensitization of the ultrasound image.
10. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the ultrasound image desensitization method as described in any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the ultrasound image desensitization method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Method and device for detecting fan-shaped area in ultrasonic image and medium
CN119625004A
