A method for processing soft tissue injury image data for orthopedics
Through the spatial locality processing and texture feature analysis of ultrasonic imaging technology, combined with the ultrasonic probe frequency adaptive control model, the problem of unclear boundaries in traditional image segmentation methods in complex images is solved, the accuracy and efficiency of image processing are improved, and it is adapted to individual Difference.
Patent Information
- Application Number
- CN202411132106.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for traditional image segmentation methods to find a universal standard grayscale interpretation threshold when processing complex images, resulting in unclear boundaries between soft tissue and orthopedics, affecting accuracy and completeness, especially due to individual differences.
Ultrasound imaging technology is used to process spatial locality, and the interpretation threshold interval of the first-level uncertainty area is obtained through texture feature analysis and grayscale average, and secondary area segmentation is performed, and an ultrasonic probe frequency adaptive control model is constructed to dynamically adjust the probe frequency. , marking the diseased area.
It improves the accuracy of local area segmentation and identification of lesion areas, adapts to the individual differences of different patients, avoids identification omissions caused by fixed frequency scanning, and significantly improves the accuracy and efficiency of image processing.
Smart Images

Figure CN118644536B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image data processing, and in particular to an orthopedic soft tissue injury image data processing method. Background Art
[0002] The prior art CN115861392B "A soft tissue registration method based on image data processing" describes a registration method including obtaining a CT point cloud map and an ultrasound image point cloud map, and pre-registering the CT point cloud map and the ultrasound image point cloud map; unifying the point cloud into the same coordinate system according to the pre-registration matrix, extracting the contours of the CT point cloud map and the ultrasound image point cloud map respectively, and forming voxels respectively, traversing all points in the CT point cloud map, and querying whether there is a point cloud in the corresponding ultrasound voxel. The present invention is a local point cloud registration method, which can register local images of complex soft tissues with deformation, providing a basis for further treatment; by extracting overlapping areas after pre-registration, and then performing precise registration, the accuracy and speed of registration can be greatly improved, providing a new method for local biological tissue registration.
[0003] The prior art CN111080778B "A method for online three-dimensional reconstruction of binocular endoscopic soft tissue images" first trains and adjusts the deep neural network model online based on the binocular endoscopic soft tissue image sequence currently collected in the most recent period of time, and then uses the adjusted deep neural network model to estimate the parallax of the binocular endoscopic soft tissue images of subsequent frames, and then obtains the three-dimensional spatial coordinates of the pixel points of the endoscopic image through the parallax and camera parameters, thereby obtaining the three-dimensional morphological coordinates of the target area and completing the online reconstruction of the three-dimensional image; finally, the deep neural network model is updated at intervals of subsequent frame images to ensure the reconstruction accuracy.
[0004] Traditional segmentation methods often select one or several grayscale thresholds based on prior knowledge. For example, pixels with grayscale values higher than a certain threshold are classified as bones, and pixels with grayscale values lower than the threshold are classified as soft tissue. This method is suitable for images with high contrast, but may not be effective for complex images. Therefore, although the accuracy is guaranteed to a certain extent, the reflection intensity of ultrasound waves varies from patient to patient due to individual differences in the tissue structure of different patients, resulting in different grayscale values corresponding to the same tissue structure in different patients. Therefore, individual differences caused by multiple influencing factors make it difficult for traditional segmentation methods to find a universal standard grayscale judgment threshold to accurately express the characteristics of each local area. The boundary between soft tissue and orthopedics may not be clear, resulting in uncertainty in the segmentation results, affecting accuracy and completeness. Summary of the invention
[0005] In order to solve the above technical problems, the object of the present invention is to provide a method for processing orthopedic soft tissue injury image data, comprising the following steps:
[0006] Step s1: using ultrasound imaging technology to obtain an ultrasound image of the current frame of the patient's internal body area, and performing spatial localization processing on the ultrasound image to obtain a primary uncertainty area and a domain area in the ultrasound image, performing texture feature analysis on the domain area in the ultrasound image, and dividing the domain area into a bone domain area, a soft tissue domain area or a primary uncertainty area according to the analysis result;
[0007] Step s2: obtaining the judgment threshold interval of each first-level uncertain area according to the grayscale average value of each bone area and soft tissue area;
[0008] Step s3: According to the grayscale value corresponding to each pixel point in the primary uncertainty area and the judgment threshold interval of the primary uncertainty area, the primary uncertainty area is segmented into a primary bone area, a soft tissue area or a secondary uncertainty area, and the primary bone area is segmented into a bone area or a secondary uncertainty area in a linear manner;
[0009] Step s4: construct an ultrasound probe frequency adaptive control model, determine the ultrasound probe frequency of the secondary uncertain area in the next frame of ultrasound image according to the ultrasound probe frequency adaptive control model, and mark the lesion area.
[0010] Furthermore, the ultrasound image of the current frame of the internal area of the patient's body is obtained by using ultrasound imaging technology, and the ultrasound image is processed for spatial localization. The process of obtaining the primary uncertainty area and the domain area in the ultrasound image includes:
[0011] Performing denoising and grayscale preprocessing on the ultrasound image of the current frame of the internal area of the patient's body to generate an ultrasound grayscale image;
[0012] A regional sliding window is set, and the grayscale average value of each local area in the ultrasonic grayscale image is obtained through the regional sliding window. The grayscale difference between the grayscale average value of each local area and the grayscale average values of several other local areas adjacent to each local area is compared to obtain the grayscale difference between each local area and several other adjacent local areas. A grayscale difference threshold is preset, and a local area whose grayscale difference with several other adjacent local areas is greater than the grayscale difference threshold is marked as a first-level uncertain area, and a local area whose grayscale difference with several other adjacent local areas is less than or equal to the grayscale difference threshold is marked as a domain area.
[0013] Further, the process of performing texture feature analysis on the domain area in the ultrasound image and dividing the domain area into a bone domain area, a soft tissue domain area or a first-level uncertain area according to the analysis result includes:
[0014] A texture feature set corresponding to the bone region and a texture feature set corresponding to the soft tissue region in the internal area of the body are preset, and the texture feature set of each domain area is obtained by using the gray level co-occurrence matrix technology, and the texture similarity between each domain area and the bone region and the texture similarity between each domain area and the soft tissue region are obtained. A texture similarity threshold is preset, and the domain area whose texture similarity with the bone region is greater than or equal to the texture similarity threshold is marked as a bone domain area, and the domain area whose texture similarity with the soft tissue region is greater than or equal to the texture similarity threshold is marked as a soft tissue domain area, and the domain area whose texture similarity with the bone region is less than the texture similarity threshold and whose texture similarity with the soft tissue region is less than the texture similarity threshold is marked as a first-level uncertain area.
[0015] Furthermore, the process of obtaining the judgment threshold interval of each first-level uncertain area according to the grayscale average value of each bone area and soft tissue area includes:
[0016] Obtaining the coordinates of the geometric center points of each first-level uncertainty area, the coordinates of the geometric center points of the bone area, and the coordinates of the geometric center points of the soft tissue area;
[0017] Obtain the Euclidean distance between the geometric center point coordinates of each bone area and soft tissue area and the geometric center point coordinates of each first-level uncertainty area, obtain the grayscale average of the geometric center point coordinates of the bone area and the grayscale average of the geometric center point coordinates of the soft tissue area with the shortest Euclidean distance to the geometric center point coordinates of each first-level uncertainty area, and obtain the bone judgment threshold interval and soft tissue judgment threshold interval of each corresponding first-level uncertainty area according to the grayscale average of the geometric center point coordinates of the bone area and the grayscale average of the geometric center point coordinates of the soft tissue area.
[0018] Further, according to the gray value corresponding to each pixel point in the primary uncertainty area and the judgment threshold interval of the primary uncertainty area, the primary uncertainty area is subjected to secondary area segmentation, and the process of dividing the primary uncertainty area into the primary bone area, the soft tissue area or the secondary uncertainty area includes:
[0019] Match the grayscale value corresponding to each pixel in the primary uncertainty area with the bone judgment threshold interval and the soft tissue judgment threshold interval in the primary uncertainty area, and mark the pixel coverage area in the primary uncertainty area whose grayscale value is within the bone judgment threshold interval as the primary bone area;
[0020] Mark the pixel area in the first-level uncertainty area where the gray value is within the soft tissue judgment threshold range as the soft tissue area;
[0021] The pixel point coverage area in the primary uncertainty region, whose grayscale value is neither within the bone judgment threshold interval nor within the soft tissue judgment threshold interval, is marked as the secondary uncertainty region.
[0022] Furthermore, the process of performing linear morphological segmentation on the primary bone domain area and dividing it into the bone domain area or the secondary uncertain area includes:
[0023] A pixel point at the geometric center of the first-level bone domain area is selected as the center pixel point, and the Euclidean distances between each edge pixel point and the center pixel point are obtained. The Euclidean distances between adjacent edge pixel points are compared to obtain the Euclidean distance difference between several adjacent edge pixel points, and a difference threshold is preset. The number of times that the Euclidean distance difference between adjacent edge pixel points is greater than the difference threshold is counted, and when the Euclidean distance difference between adjacent edge pixel points is greater than the difference threshold, the difference between the Euclidean distance difference and the difference threshold is obtained, and a linear coefficient is obtained according to the number and the difference, and a linear coefficient threshold is preset. When the linear coefficient is greater than the linear coefficient threshold, the area covered by each edge pixel point at the edge of the first-level bone domain area is re-marked as a second-level uncertain area, and when the linear coefficient is less than the linear coefficient threshold, the first-level bone domain area is marked as a bone domain area.
[0024] Furthermore, an ultrasonic probe frequency adaptive control model is constructed, and a process of determining the ultrasonic probe frequency of the secondary uncertainty area in the next frame of ultrasonic image according to the ultrasonic probe frequency adaptive control model includes:
[0025] If there is a marked secondary uncertainty area in the current frame of ultrasonic grayscale image, the current frame of ultrasonic grayscale image and the marked secondary uncertainty area are input into the ultrasonic probe frequency adaptive control model, and the ultrasonic probe frequency corresponding to the secondary uncertainty area in the next frame of ultrasonic image is output according to the ultrasonic probe frequency adaptive control model.
[0026] Furthermore, the process of marking the lesion area includes:
[0027] Set the dynamic frame number n. When the coverage area of the secondary uncertainty area in the nth frame of the ultrasound image of the patient's internal body area or the current frame of the ultrasound image is consistent with the coverage area of the secondary uncertainty area in the previous frame of the ultrasound image, stop acquiring the patient's ultrasound image, acquire the secondary uncertainty area in the nth frame of the ultrasound image or the current frame of the ultrasound image, and mark the secondary uncertainty area as a lesion area.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] 1. Use ultrasound imaging technology to obtain the ultrasound image of the current frame of the patient's internal area, and perform spatial localization processing on the ultrasound image to obtain the first-level uncertainty area and domain area in the ultrasound image, perform texture feature analysis on the domain area in the ultrasound image, and divide the domain area into bone domain area, soft tissue domain area or first-level uncertainty area according to the analysis results, and use the grayscale average of the bone domain area closest to the first-level uncertainty area and the grayscale average of the soft tissue domain area closest to the first-level uncertainty area as the bone grayscale judgment threshold and soft tissue grayscale judgment threshold of the first-level uncertainty area. Compared with traditional segmentation methods, it often selects one or several grayscale thresholds based on prior knowledge, such as setting grayscale values above a certain threshold as the threshold. Pixels with grayscale values above the threshold are classified as bones, and pixels with grayscale values below the threshold are classified as soft tissue. This method is suitable for images with high contrast, but may not work well for complex images. Therefore, although the accuracy is guaranteed to a certain extent, the reflection intensity of ultrasound waves varies with the tissue structures of different patients, resulting in different grayscale values corresponding to the same tissue structure in different patients. Therefore, the individual differences caused by multiple influencing factors make it difficult for traditional segmentation methods to find a universal standard grayscale judgment threshold to accurately express the characteristics of each local area. The present invention uses spatial locality to determine the standard judgment threshold of the first-level uncertainty area, realizes the personalized dynamic setting of the judgment threshold of the ultrasound image area, and improves the regional segmentation accuracy of the local area.
[0030] 2. Construct an ultrasonic probe frequency adaptive control model. According to the ultrasonic probe frequency adaptive control model, determine the ultrasonic probe frequency of the secondary uncertain area in the next frame of the ultrasonic image, and mark the lesion area. When using ultrasonic imaging for diagnosis and analysis, dynamically increase the ultrasonic imaging resolution of the uncertain area in the ultrasonic image, avoiding the omission of the lesion area due to ultrasonic scanning with a fixed frequency of the ultrasonic probe, and significantly increase the recognition accuracy and efficiency of the lesion area. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a schematic diagram of a method for processing orthopedic soft tissue injury image data according to an embodiment of the present application.
[0032] Figure 2 This is a process diagram of obtaining the grayscale average value of each local area in an ultrasonic grayscale image through a regional sliding window in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following is a clear and complete description of the technical solutions in the embodiments of the present application 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 those skilled in the art without creative work are within the scope of protection of the present application.
[0034] like Figure 1 As shown, a method for processing orthopedic soft tissue injury image data comprises the following steps:
[0035] Step s1: using ultrasound imaging technology to obtain an ultrasound image of the current frame of the patient's internal body area, and performing spatial localization processing on the ultrasound image to obtain a primary uncertainty area and a domain area in the ultrasound image, performing texture feature analysis on the domain area in the ultrasound image, and dividing the domain area into a bone domain area, a soft tissue domain area or a primary uncertainty area according to the analysis result;
[0036] Step s2: obtaining the judgment threshold interval of each first-level uncertain area according to the grayscale average value of each bone area and soft tissue area;
[0037] Step s3: According to the grayscale value corresponding to each pixel point in the primary uncertainty area and the judgment threshold interval of the primary uncertainty area, the primary uncertainty area is segmented into a primary bone area, a soft tissue area or a secondary uncertainty area, and the primary bone area is segmented into a bone area or a secondary uncertainty area in a linear manner;
[0038] Step s4: construct an ultrasound probe frequency adaptive control model, determine the ultrasound probe frequency of the secondary uncertain area in the next frame of ultrasound image according to the ultrasound probe frequency adaptive control model, and mark the lesion area.
[0039] It should be further explained that, in the specific implementation process, the ultrasound image of the current frame of the internal area of the patient's body is obtained by using ultrasound imaging technology, and the ultrasound image is processed for spatial localization. The process of obtaining the primary uncertainty area and the domain area in the ultrasound image includes:
[0040] Preset the initial frequency of the ultrasound probe, use ultrasound imaging technology to obtain the ultrasound image of the current frame of the internal area of the patient's body according to the initial frequency of the ultrasound probe, perform denoising and grayscale preprocessing on the ultrasound image of the patient, and generate an ultrasound grayscale image;
[0041] A regional sliding window is set. In the present invention, the regional sliding window size defaults to 64x64 pixels. The grayscale average value of each local area in the ultrasonic grayscale image is obtained through the regional sliding window. The process of obtaining the grayscale average value of each local area in the ultrasonic grayscale image through the regional sliding window is as follows: Figure 2 As shown, the grayscale average value of each local area is compared with the grayscale average values of several other local areas adjacent to each local area, the grayscale difference between each local area and several other adjacent local areas is obtained, a grayscale difference threshold is preset, and the local area whose grayscale difference with several other adjacent local areas is greater than the grayscale difference threshold is marked as a first-level uncertain area, and the local area whose grayscale difference with several other adjacent local areas is less than or equal to the grayscale difference threshold is marked as a domain area.
[0042] Ultrasound imaging uses the reflection and propagation characteristics of high-frequency sound waves in human tissues to generate images by sending and receiving sound waves through the probe. It is effective for soft tissue inspections, but has limited display of bone structures. Ultrasound provides real-time dynamic images that can observe the movement of tissue structures and blood flow, and has certain advantages in the detection of soft tissue lesions.
[0043] It should be noted that the ultrasound images obtained using ultrasound imaging technology may have noise problems. Therefore, in one embodiment of the present invention, after the image data is obtained, it is necessary to perform image preprocessing operations on it to improve the quality of the image data so as to obtain image data for subsequent analysis. Improving image quality through image preprocessing operations is an image processing method well known to those skilled in the art. In the embodiment of the invention, the noise in the image is removed by a Gaussian filtering method, and then the image data is equalized to improve the contrast of the image. Among them, denoising and equalization processing is a technical means well known to those skilled in the art, and the specific steps will not be repeated. Other image preprocessing methods may also be used in other embodiments of the present invention, and are not limited here.
[0044] It should be further explained that, in the specific implementation process, the process of performing texture feature analysis on the domain area in the ultrasound image and dividing the domain area into a bone domain area, a soft tissue domain area or a first-level uncertain area according to the analysis result includes:
[0045] A texture feature set corresponding to the bone region and a texture feature set corresponding to the soft tissue region in the preset body internal region are provided. For example, if the patient's internal body region to be detected is the calf region, the texture feature set corresponding to the soft tissue region included in the calf region and the texture feature set corresponding to the bone region are obtained in advance. In the field of orthopedics, the soft tissue included in the calf region includes muscle tissue. Muscle tissue is one of the most common soft tissues, which includes skeletal muscles directly connected to bones, such as limb muscles, neck and trunk muscles, etc. Ligaments: Ligaments are connective tissues connecting bones to bones. Their main function is to stabilize joints and prevent excessive joint activity or instability. In orthopedic surgery, ligament damage or relaxation often requires special attention and treatment. Tendons: Tendons are connective tissues that connect muscles to bones. They transmit the force generated by muscles to bones, allowing joints to move. In orthopedic surgery or injuries, tendon repair or reconstruction is often one of the focuses of treatment. Nerve tissue: In orthopedic surgery, the location and function of nerve tissue are also crucial. Peripheral nerves may be damaged or compressed and require special protection and treatment to avoid affecting postoperative sensory and motor functions. The grayscale co-occurrence matrix technology is used to obtain the grayscale co-occurrence matrix of each domain area, and the texture feature set of each domain area is obtained based on the grayscale co-occurrence matrix. The texture feature set of each domain area is compared with the texture feature set corresponding to the bone area and the texture feature set corresponding to the soft tissue area to obtain the texture similarity between each domain area and the bone area, and the texture similarity between each domain area and the soft tissue area. A texture similarity threshold is preset, and the domain area whose texture similarity with the bone area is greater than or equal to the texture similarity threshold is marked as a bone domain area, and the domain area whose texture similarity with the soft tissue area is greater than or equal to the texture similarity threshold is marked as a soft tissue domain area. The domain area whose texture similarity with the bone area is less than the texture similarity threshold and whose texture similarity with the soft tissue area is less than the texture similarity threshold is marked as a first-level uncertain area.
[0046] It should be further explained that, in the specific implementation process, based on the calculated gray level co-occurrence matrix, a series of texture feature values are extracted to construct a texture feature set, and the texture features in the texture feature set include but are not limited to:
[0047] Contrast: It is a statistical feature that describes the contrast of pixels at different gray levels in an image. It is a feature that measures the roughness of the image texture and reflects the clarity of the image and the depth of the texture grooves. The deeper the texture grooves, the greater the contrast and the clearer the visual effect. On the contrary, when the contrast is small, the grooves are shallow and the effect is blurred.
[0048] Energy: describes the uniformity of the grayscale distribution of pixels in an image, measures the randomness contained in the image, and shows the complexity of the image. When all values of the co-occurrence matrix are equal or the pixel values show the greatest randomness, the entropy is the largest;
[0049] Entropy: describes the uncertainty of image texture, measures the randomness contained in the image, and shows the complexity of the image. When all values of the co-occurrence matrix are equal or the pixel values show the greatest randomness, the entropy is the largest;
[0050] It should be further explained that, in the specific implementation process, the calculation formula for obtaining the texture similarity between each region is:
[0051] ;
[0052] in, represents the texture similarity between region i and region j, represents the contrast of region i, represents the contrast of region j, represents the energy of region i, represents the energy of region j, represents the entropy of region i, represents the entropy of region j, , , Represents the weight factor.
[0053] It should be further explained that, in the specific implementation process, the process of obtaining the judgment threshold interval of each first-level uncertainty area according to the grayscale average value of each bone area and soft tissue area includes:
[0054] Obtaining the coordinates of the geometric center points of each first-level uncertainty area, the coordinates of the geometric center points of the bone area, and the coordinates of the geometric center points of the soft tissue area;
[0055] Obtain the Euclidean distances between the geometric center coordinates of each bone domain area and the geometric center coordinates of the soft tissue domain area and the geometric center coordinates of each first-level uncertainty area, screen out the bone domain areas and soft tissue domain areas with the shortest Euclidean distances to each first-level uncertainty area, obtain the grayscale averages of the geometric center coordinates of the bone domain areas and the grayscale averages of the geometric center coordinates of the soft tissue domain areas with the shortest Euclidean distances to the geometric center coordinates of each first-level uncertainty area, and obtain the bone judgment threshold interval and soft tissue judgment threshold interval of each corresponding first-level uncertainty area according to the grayscale averages of the geometric center coordinates of the bone domain areas and the grayscale averages of the geometric center coordinates of the soft tissue domain areas.
[0056] Among them, the bone judgment threshold interval = the grayscale average coordinates of the geometric center point of the bone area Bone field deviation threshold;
[0057] Soft tissue judgment threshold interval = grayscale average coordinates of the geometric center point of the soft tissue area Soft tissue field deviation threshold; bone field deviation threshold and soft tissue field deviation threshold are obtained according to expert knowledge.
[0058] The grayscale average value of the bone area closest to the first-level uncertainty area and the grayscale average value of the soft tissue area closest to the first-level uncertainty area are used as the bone grayscale judgment threshold and the soft tissue grayscale judgment threshold of the first-level uncertainty area. Compared with the traditional segmentation method, it often selects one or several grayscale thresholds based on prior knowledge. For example, pixels with grayscale values higher than a certain threshold are classified as bones, and pixels with grayscale values lower than the threshold are classified as soft tissues. This method is suitable for images with high contrast, but may not be effective for complex images. Therefore, although the accuracy is guaranteed to a certain extent, due to the personalized differences in the reflection intensity of ultrasound waves in the tissue structures of different patients, the grayscale values corresponding to the same tissue structure of different patients are different. Therefore, the individual differences caused by multiple influencing factors make it difficult for the traditional segmentation method to find a universal standard grayscale judgment threshold to accurately express the characteristics of each local area. The present invention uses spatial locality to determine the standard judgment threshold of the first-level uncertainty area, thereby improving the regional segmentation accuracy of the local area.
[0059] It should be further explained that, in the specific implementation process, according to the gray value corresponding to each pixel point in the primary uncertainty area and the judgment threshold interval of the primary uncertainty area, the primary uncertainty area is subjected to secondary area segmentation, and the process of dividing it into the primary bone area, the soft tissue area or the secondary uncertainty area includes:
[0060] Obtain the grayscale value corresponding to each pixel in the primary uncertainty area, match the grayscale value corresponding to each pixel with the bone judgment threshold interval and the soft tissue judgment threshold interval in the primary uncertainty area, and mark the pixel coverage area in the primary uncertainty area whose grayscale value is within the bone judgment threshold interval as the primary bone area;
[0061] Mark the pixel area in the first-level uncertainty area where the gray value is within the soft tissue judgment threshold range as the soft tissue area;
[0062] The pixel point coverage area in the primary uncertainty region, whose grayscale value is neither within the bone judgment threshold interval nor within the soft tissue judgment threshold interval, is marked as the secondary uncertainty region.
[0063] It should be further explained that, in the specific implementation process, the process of performing linear morphological segmentation on the primary bone area and dividing it into the bone area or the secondary uncertain area includes:
[0064] A pixel point at the geometric center of the first-level bone domain area is selected as the center pixel point, and the Euclidean distances between each edge pixel point and the center pixel point are obtained. The Euclidean distances between adjacent edge pixel points are compared to obtain the Euclidean distance difference between several adjacent edge pixel points, and a difference threshold is preset. The number of times that the Euclidean distance difference between adjacent edge pixel points is greater than the difference threshold is counted, and when the Euclidean distance difference between adjacent edge pixel points is greater than the difference threshold, the difference between the Euclidean distance difference and the difference threshold is obtained, and a linear coefficient is obtained according to the number and the difference, and a linear coefficient threshold is preset. When the linear coefficient is greater than the linear coefficient threshold, the area covered by each edge pixel point at the edge of the first-level bone domain area is re-marked as a second-level uncertain area, and when the linear coefficient is less than the linear coefficient threshold, the first-level bone domain area is marked as a bone domain area.
[0065] The calculation formula for obtaining the linear coefficient according to the number and the difference is:
[0066] ;
[0067] Among them, GF represents the linear coefficient, GH represents the degree, and GT represents the difference. represents the conversion coefficient, b1 and b2 are coefficient factors.
[0068] Bones usually appear as clear, continuous linear structures, and because they are solid structures, the propagation and reflection of ultrasound are relatively direct. Soft tissues may present more details and structures, such as the outline of organs, branches of blood vessels, etc., and it is difficult to analyze the morphological characteristics of soft tissues. Therefore, by observing the morphological characteristics of the bone area structure, a secondary judgment is made on the edge area of the bone area to determine whether it is bone or soft tissue, thereby improving the resolution accuracy of the edge area.
[0069] It should be further explained that, in the specific implementation process, the process of constructing an ultrasonic probe frequency adaptive control model and determining the ultrasonic probe frequency of the secondary uncertainty area in the next frame of ultrasonic image according to the ultrasonic probe frequency adaptive control model includes:
[0070] Construct an ultrasonic probe frequency adaptive control model. If there is a marked secondary uncertainty area in the ultrasonic grayscale image of the current frame, input the ultrasonic grayscale image of the current frame and the marked secondary uncertainty area into the ultrasonic probe frequency adaptive control model. Output the ultrasonic probe frequency corresponding to the secondary uncertainty area in the next ultrasonic image frame according to the ultrasonic probe frequency adaptive control model. For example, pre-construct a two-dimensional coordinate system of the ultrasonic grayscale image of the current frame, obtain the two-dimensional coordinates of the pixel points covered by the marked secondary uncertainty area in the ultrasonic grayscale image of the current frame, and when the ultrasonic probe detects the ultrasonic image of the next frame, the frequency of the two-dimensional coordinates of the pixel points covered by the secondary uncertainty area detected by the ultrasonic probe is the frequency output by the ultrasonic probe frequency adaptive control model, and the area outside the secondary uncertainty area detected by the ultrasonic probe is detected according to the initial frequency of the ultrasonic probe.
[0071] The spatial resolution in ultrasound imaging is closely related to the frequency of the ultrasound probe. Spatial resolution refers to the ability of the imaging system to distinguish between two adjacent targets, that is, the spatial resolution of the imaging system. The spatial resolution of ultrasound imaging is affected by the ultrasound frequency. Lower spatial resolution may result in details in the image not being clearly displayed. Therefore, the resolution problem of ultrasound imaging data may affect the quality and accuracy of the image. When using ultrasound imaging for diagnosis and analysis, the ultrasound imaging resolution is dynamically increased for uncertain areas in the ultrasound image, avoiding the omission of the lesion area due to ultrasound scanning with a fixed frequency of the ultrasound probe, significantly increasing the recognition accuracy and efficiency of the lesion area.
[0072] It should be further explained that, in the specific implementation process, the process of constructing the ultrasonic probe frequency adaptive control model includes:
[0073] Based on the idea of imitation learning, a simulator is used to generate ultrasound training images of different ultrasound probe frequencies corresponding to the internal body areas of different patients, and an ultrasound training image of different ultrasound probe frequencies corresponding to the internal body area of a target patient is randomly selected. Steps s1, s2 and s3 are performed on the ultrasound training image to generate secondary uncertainty areas corresponding to different ultrasound probe frequencies. The ultrasound training image and the secondary uncertainty area are used to train an ultrasound probe frequency adaptive control model. The ultrasound probe frequency adaptive control model outputs the ultrasound probe frequency of the next frame corresponding to the secondary uncertainty area corresponding to different ultrasound probe frequencies. The simulator obtains the ultrasound image of the next frame corresponding to the internal body area of the target patient according to the ultrasound probe frequency of the next frame, and trains the ultrasound image of the next frame. The acoustic image performs steps s1, s2 and s3 to generate a secondary uncertainty area, and simultaneously obtains the lesion area of the target patient's internal body area, compares the coverage area of the secondary uncertainty area with the lesion area, obtains a two-dimensional coordinate set of several pixel points included in the secondary uncertainty area and a two-dimensional coordinate set of several pixel points included in the lesion area in the same two-dimensional coordinate system, obtains the overlap of the two two-dimensional coordinate sets, and presets an overlap threshold. If the overlap is greater than or equal to the overlap threshold, the training of ultrasound training images of different ultrasound probe frequencies corresponding to the target patient's internal body area is completed, and then ultrasound training images of different ultrasound probe frequencies corresponding to other target patients' internal body areas are randomly selected to train the ultrasound probe frequency adaptive control model until the training is completed.
[0074] The calculation formula for obtaining the two-dimensional coordinate set of several pixel points included in the secondary uncertainty area and the two-dimensional coordinate set of several pixel points included in the lesion area in the same two-dimensional coordinate system is:
[0075] ;
[0076] in, represents the overlap ratio, Represents the total number of pixels included in the secondary uncertainty area and the number of pixels included in the lesion area in the same two-dimensional coordinate system, It represents the number of pixels with the same two-dimensional coordinates in the secondary uncertainty area and the lesion area in the same two-dimensional coordinate system. Indicates the conversion factor.
[0077] It should be further explained that, in the specific implementation process, the process of marking the lesion area includes:
[0078] The number of dynamic frames n is set. When the coverage area of the secondary uncertainty area in the nth frame of the ultrasound image of the patient's internal body area or the current frame is consistent with the coverage area of the secondary uncertainty area in the previous frame of the ultrasound image, it should be further explained that if the ultrasound probe frequency of the secondary uncertainty area in the current frame of the ultrasound image is consistent with the coverage area of the secondary uncertainty area in the previous frame of the ultrasound image, it is proved that after the secondary uncertainty area in each frame of the ultrasound image is determined through steps s1, s2 and s3, and the ultrasound probe frequency of the secondary uncertainty area in each frame is dynamically updated, there is no known bone neighborhood area and soft tissue area in the uncertainty area, that is, the segmentation of the bone neighborhood area and the soft tissue area is completed, then stop acquiring the patient's ultrasound image, and acquire the secondary uncertainty area in the nth frame of the ultrasound image or the current frame of the ultrasound image, and mark the secondary uncertainty area as a lesion area.
[0079] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. A method for processing image data of soft tissue injury in orthopedics, It is characterized in that The following steps are involved: Step s1: using ultrasound imaging technology to obtain an ultrasound image of the current frame of the patient's internal body area, and performing spatial localization processing on the ultrasound image to obtain a primary uncertainty area and a domain area in the ultrasound image, performing texture feature analysis on the domain area in the ultrasound image, and dividing the domain area into a bone domain area, a soft tissue domain area or a primary uncertainty area according to the analysis result; The ultrasound image of the current frame of the internal area of the patient's body is obtained by using ultrasound imaging technology, and the ultrasound image is processed spatially locally. The process of obtaining the primary uncertainty area and the domain area in the ultrasound image includes: Performing denoising and grayscale preprocessing on the ultrasound image of the current frame of the internal area of the patient's body to generate an ultrasound grayscale image; A regional sliding window is set, and the grayscale average value of each local area in the ultrasonic grayscale image is obtained through the regional sliding window, and the grayscale average value of each local area is compared with the grayscale average value of several other local areas adjacent to each local area, so as to obtain the grayscale difference between each local area and several other adjacent local areas, and a grayscale difference threshold is preset, and a local area whose grayscale difference with several other adjacent local areas is greater than the grayscale difference threshold is marked as a primary uncertain area, and a local area whose grayscale difference with several other adjacent local areas is less than or equal to the grayscale difference threshold is marked as a domain area; Step s2: obtaining the judgment threshold interval of each first-level uncertain area according to the grayscale average value of each bone area and soft tissue area; Step s3: According to the grayscale value corresponding to each pixel point in the primary uncertainty area and the judgment threshold interval of the primary uncertainty area, the primary uncertainty area is segmented into a primary bone area, a soft tissue area or a secondary uncertainty area, and the primary bone area is segmented into a bone area or a secondary uncertainty area in a linear manner; The process of performing linear morphological segmentation on the primary bone area and dividing it into the bone area or the secondary uncertain area includes: Select the pixel point at the geometric center of the first-level bone domain area as the center pixel point, obtain each edge pixel point at the edge of the first-level bone domain area and the Euclidean distance between each edge pixel point and the center pixel point, compare the Euclidean distances between adjacent edge pixels, obtain the Euclidean distance difference between several adjacent edge pixels, preset a difference threshold, count the number of times the Euclidean distance difference between adjacent edge pixels is greater than the difference threshold, and when the Euclidean distance difference between adjacent edge pixels is greater than the difference threshold, obtain the difference between the Euclidean distance difference and the difference threshold, obtain the linear coefficient according to the number and the difference, preset the linear coefficient threshold, when the linear coefficient is greater than the linear coefficient threshold, re-mark the area covered by each edge pixel point at the edge of the first-level bone domain area as a second-level uncertain area, and when the linear coefficient is less than the linear coefficient threshold, mark the first-level bone domain area as a bone domain area; Step s4: constructing an ultrasound probe frequency adaptive control model, determining the ultrasound probe frequency of the secondary uncertain area in the next frame of ultrasound image according to the ultrasound probe frequency adaptive control model, and marking the lesion area; The process of marking the lesion area includes: Set the dynamic frame number n. When the coverage area of the secondary uncertainty area in the nth frame of the ultrasound image of the patient's internal body area or the current frame is consistent with the coverage area of the secondary uncertainty area in the previous frame of the ultrasound image, stop acquiring the patient's ultrasound image, acquire the secondary uncertainty area in the nth frame of the ultrasound image or the current frame, and mark the secondary uncertainty area as a lesion area.
2. The orthopedic soft tissue injury image data processing method according to claim 1, It is characterized in that The process of performing texture feature analysis on a domain area in an ultrasound image and dividing the domain area into a bone domain area, a soft tissue domain area or a first-level uncertain region according to the analysis result includes: A texture feature set corresponding to the bone region and a texture feature set corresponding to the soft tissue region in the internal area of the body are preset, and the texture feature set of each domain area is obtained by using the gray level co-occurrence matrix technology, and the texture similarity between each domain area and the bone region and the texture similarity between each domain area and the soft tissue region are obtained. A texture similarity threshold is preset, and the domain area whose texture similarity with the bone region is greater than or equal to the texture similarity threshold is marked as a bone domain area, and the domain area whose texture similarity with the soft tissue region is greater than or equal to the texture similarity threshold is marked as a soft tissue domain area, and the domain area whose texture similarity with the bone region is less than the texture similarity threshold and whose texture similarity with the soft tissue region is less than the texture similarity threshold is marked as a first-level uncertain area.
3. The orthopedic soft tissue injury image data processing method according to claim 2, It is characterized in that The process of obtaining the judgment threshold interval of each first-level uncertainty area according to the grayscale average value of each bone area and soft tissue area includes: Obtaining the coordinates of the geometric center points of each first-level uncertainty area, the coordinates of the geometric center points of the bone area, and the coordinates of the geometric center points of the soft tissue area; Obtain the Euclidean distance between the geometric center point coordinates of each bone area and soft tissue area and the geometric center point coordinates of each first-level uncertainty area, obtain the grayscale average of the geometric center point coordinates of the bone area and the grayscale average of the geometric center point coordinates of the soft tissue area with the shortest Euclidean distance to the geometric center point coordinates of each first-level uncertainty area, and obtain the bone judgment threshold interval and soft tissue judgment threshold interval of each corresponding first-level uncertainty area according to the grayscale average of the geometric center point coordinates of the bone area and the grayscale average of the geometric center point coordinates of the soft tissue area.
4. The orthopedic soft tissue injury image data processing method according to claim 3, It is characterized in that According to the grayscale value corresponding to each pixel in the primary uncertainty area and the judgment threshold interval of the primary uncertainty area, the primary uncertainty area is segmented into a primary bone area, a soft tissue area or a secondary uncertainty area. The process includes: Match the grayscale value corresponding to each pixel in the primary uncertainty area with the bone judgment threshold interval and the soft tissue judgment threshold interval in the primary uncertainty area, and mark the pixel coverage area in the primary uncertainty area whose grayscale value is within the bone judgment threshold interval as the primary bone area; Mark the pixel area in the first-level uncertainty area whose gray value is within the soft tissue judgment threshold range as the soft tissue area; The pixel point coverage area in the primary uncertainty area whose gray value is neither within the bone judgment threshold interval nor within the soft tissue judgment threshold interval is marked as the secondary uncertainty area.
5. The orthopedic soft tissue injury image data processing method according to claim 4, It is characterized in that The ultrasonic probe frequency adaptive control model is constructed, and the process of determining the ultrasonic probe frequency of the secondary uncertainty area in the next frame of ultrasonic image according to the ultrasonic probe frequency adaptive control model includes: If there is a marked secondary uncertainty area in the current frame of ultrasonic grayscale image, the current frame of ultrasonic grayscale image and the marked secondary uncertainty area are input into the ultrasonic probe frequency adaptive control model, and the ultrasonic probe frequency corresponding to the secondary uncertainty area in the next frame of ultrasonic image is output according to the ultrasonic probe frequency adaptive control model.
