Disclosure of Invention
The invention provides a skin tissue fluid positioning method and system based on ultrasonic detection, which are used for at least solving the technical problem that the existing tissue fluid extraction technology is very low in efficiency.
The skin tissue fluid positioning method based on ultrasonic detection comprises the following steps: scanning the surface of human skin according to ultrasonic waves with preset frequency to obtain at least one M-shaped ultrasonic image, wherein the at least one M-shaped ultrasonic image comprises skin tissue fluid position information; converting the acquired at least one M-shaped ultrasonic image based on a preset gray image pixel value so as to output a gray image of the at least one M-shaped ultrasonic image; extracting an interested region in the gray-scale map based on a rectangular region frame with a preset size, wherein the extracting of the interested region specifically comprises the following steps: removing an upper boundary area of the gray scale map and a lower boundary area of the gray scale map; determining an upper boundary of the epidermis and a lower boundary of the epidermis so as to remove the epidermis region; extracting an interested region in the residual region according to a rectangular region frame with a preset size, wherein the upper part of the rectangular region frame is aligned with the upper part of the residual region; judging whether at least one pixel value in the region of interest is smaller than a third preset pixel value; if at least one pixel value in the region of interest is smaller than a third preset pixel value, taking the at least one pixel value as a foreground, and if the at least one pixel value in the region of interest is not smaller than the third preset pixel value, taking the at least one pixel value as a background, so as to obtain a binary image of the region of interest, wherein the foreground in the binary image is defined as a white pixel; and detecting the white pixels in the binary image according to a spot detection algorithm and calculating the area of a white pixel region, so that an image of the skin tissue fluid is output and positioned.
According to the method, the distribution of the tissue fluid in the skin is detected through ultrasound, the tissue fluid is identified and positioned based on the extracted region of interest, and the position with high content of the skin tissue fluid can be detected quickly, so that the tissue fluid is collected in an auxiliary manner, and the problems of blindness, low efficiency and long time consumption of the skin tissue fluid during collection are solved.
In addition, the skin tissue fluid positioning method based on ultrasonic detection according to the above embodiment of the present invention may further have the following additional technical features:
further, the preset frequency of the ultrasonic wave is 18MHz-40 MHz.
Further, the depth of the M-type ultrasonic image is 1500-2500 microns, and the width of the M-type ultrasonic image is 3500-4500 microns.
Further, wherein the expression for calculating the preset gray scale image pixel value is:
F=0.2989*R+0.5870+G+0.1140*B,
in the formula, F is a preset gray image pixel value, R is a pixel value of a red channel, G is a pixel value of a green channel, and B is a pixel value of a blue channel.
Further, the upper boundary region of the gray scale map is a continuous region from a center point pixel value of a certain row in the gray scale map being greater than a first preset pixel value to a center point pixel value of a next row in the gray scale map being less than the first preset pixel value;
the lower boundary area of the gray scale map is a continuous area from the point pixel value of the center of a certain row in the gray scale map being greater than a second preset pixel value to the point pixel value of the center of the next row in the gray scale map being less than the second preset pixel value.
Further, the upper boundary of the skin is a boundary from a center point pixel value of a certain row in the gray-scale image to a center point pixel value of a next row in the gray-scale image to be smaller than a first preset pixel value;
the lower boundary of the skin is the boundary 200 microns down the upper boundary of the skin.
Further, the width of the rectangular area frame is 1000-1500 micrometers, and the length of the rectangular area frame is consistent with the length of the gray scale map.
According to the embodiment of the invention, the skin tissue fluid positioning system based on ultrasonic detection comprises: the scanning module is configured to scan the surface of human skin according to ultrasonic waves with preset frequency, so that at least one M-shaped ultrasonic image is obtained, wherein the at least one M-shaped ultrasonic image comprises skin tissue fluid position information; the conversion module is configured to convert the acquired at least one M-shaped ultrasonic image based on a preset gray image pixel value so as to output a gray image of the at least one M-shaped ultrasonic image; the extraction module is configured to extract an interested region in the gray-scale map based on a rectangular region frame with a preset size, wherein the extracting of the interested region specifically comprises: removing an upper boundary in the gray scale image and a lower boundary in the gray scale image; determining an upper boundary of the epidermis and a lower boundary of the epidermis so as to remove the epidermis region; extracting an interested area in the residual area according to a rectangular area frame with a preset size, wherein the upper part of the rectangular area frame is aligned with the upper part of the residual area; the judging module is configured to judge whether at least one pixel value in the region of interest is smaller than a preset pixel value; a defining module configured to take at least one pixel value in the region of interest as a foreground if the at least one pixel value is smaller than a preset pixel value, and take the at least one pixel value in the region of interest as a background if the at least one pixel value is not smaller than the preset pixel value, so as to obtain a binary image of the region of interest, wherein the foreground in the binary image is defined as a white pixel; and the output module is configured to detect the white pixels in the binary image according to a speckle detection algorithm and calculate the area of a white pixel region, so that an image of the localized skin tissue fluid is output.
The present invention also provides a computer readable storage medium having stored thereon a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the steps of the method for ultrasound probe based localization of skin tissue fluid according to any of the embodiments of the present invention.
The present invention also provides an electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method for locating skin interstitial fluid based on ultrasound detection of any of the embodiments of the present invention.
According to the skin tissue fluid positioning method and system based on ultrasonic detection, the distribution of tissue fluid in the skin is detected through ultrasonic, the tissue fluid is identified and positioned based on the extracted region of interest, the position with high content of the skin tissue fluid can be rapidly detected, the tissue fluid is collected in an auxiliary manner, and the problems of blindness, low efficiency and long time consumption of the skin tissue fluid during collection are solved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to FIG. 1, a flow chart of a method for locating skin interstitial fluid based on ultrasound detection is shown.
As shown in fig. 1, the skin tissue fluid localization method based on ultrasonic detection specifically includes the following steps:
step S101, scanning the surface of human skin according to ultrasonic waves with preset frequency to obtain at least one M-shaped ultrasonic image, wherein the at least one M-shaped ultrasonic image comprises skin tissue fluid position information.
In this embodiment, the ultrasound is used for detection, and the scanning process is also accompanied by a grid that can be transferred to the skin. The grid is composed of 7 × 5 square lattices, there are 35 lattices in total, and each lattice has a side of 2 cm. The node formed by the intersection of every two lines is where the ultrasound scanner scans, so there are 48 scan points in total. The first longitudinal line is defined as a, the next as B, and so on to the 6 th line as F. Each longitudinal line has 8 nodes at the head, the first node is defined as 1, the second node is defined as 2, and so on until the 8 th node is defined as 8. Finally, each scan point has a unique code number, such as a1, B2, F8, and so on.
The process of mesh transfer to the skin is as follows: two anatomical points that can form a straight line are first identified at the skin location to be scanned, and then the first transverse line of the grid (i.e., the line formed by the nodes a 1-F1) is aligned with the two anatomical points. Once aligned, the remaining grid will be laid evenly, with the assurance that the grid is not pulled. Thereafter, the mesh was transferred to the skin by coating the upper side of the mesh with 75% or 95% alcohol.
Before scanning, the ultrasound couplant is evenly smeared on the skin with the grids, and then an ultrasound scanner is used for taking an M-type ultrasound image at each node.
Step S102, converting the acquired at least one M-shaped ultrasonic image based on a preset gray level image pixel value, so as to output a gray level image of the at least one M-shaped ultrasonic image.
In this embodiment, ultrasound images are imported from the user-specified location, each ultrasound image having a depth of 2000 microns and a width of 4000 microns. After reading the image, the next step is to convert the image into a gray scale image, and the expression of the preset gray scale image pixel value is calculated as follows:
F=0.2989*R+0.5870*G+0.1140*B,
in the formula, F is a preset gray image pixel value, R is a pixel value of a red channel, G is a pixel value of a green channel, and B is a pixel value of a blue channel.
And step S103, extracting a region of interest in the gray-scale map based on a rectangular region frame with a preset size.
In this embodiment, the extracting the region of interest specifically includes: removing an upper boundary area of the gray scale map and a lower boundary area of the gray scale map; determining an upper boundary of the epidermis and a lower boundary of the epidermis so as to remove the epidermis region; and extracting the region of interest in the remaining region according to a rectangular region frame with a preset size.
Since the location of interstitial fluid is mostly 1000 microns below the epidermis, the region of interest is a rectangular region of 4000 microns by 1000 microns starting from the lower boundary of the epidermis. As can be seen from fig. 2, there are extra black pixels on both the top and bottom of the ultrasound image, so the first step is to remove the extra black pixels. The upper boundary of the epidermis is the pixel value of the central point of each line of the image checked in an iterative manner, and the pixel with the first appearance pixel value larger than 60 is defined as the upper boundary. The lower border of the ultrasound image is confirmed in the same manner, but starting with the last line and checking up and the threshold is set to 40. The lower boundary of the epidermis is from the upper boundary plus 200 microns. The extracted region of interest can be seen in fig. 3.
Step S104, judging whether at least one pixel value in the region of interest is smaller than a third preset pixel value.
Step S105, if at least one pixel value in the region of interest is smaller than a third preset pixel value, using the at least one pixel value as a foreground, and if the at least one pixel value in the region of interest is not smaller than the third preset pixel value, using the at least one pixel value as a background, so as to obtain a binary image of the region of interest, where the foreground in the binary image is defined as a white pixel.
In this embodiment, the extracted region of interest is first binarized, all the pixel values smaller than 30 are taken as foreground (white pixels), and the rest of the pixels are converted into background (black pixels), as shown in fig. 4. The white pixels in the binary image are defined as skin tissue fluid. Then, all the spots in the image are detected by using a spot detection algorithm, and the largest spot is selected for analysis. The blob detection algorithm will calculate the area and centroid of the largest blob.
And step S106, detecting the white pixels in the binary image according to a spot detection algorithm and calculating the area of a white pixel area so as to output an image for positioning the skin tissue fluid.
In this embodiment, the identification and positioning are repeated for each input ultrasound image, and then the result is written into an Excel file and exported to a location designated by the user. Each line in the Excel table represents information of each image. In addition, the most numerous images of interstitial fluid can be highlighted by contrasting the maximum interstitial fluid surface area, as shown in FIG. 5.
In conclusion, the method of the embodiment can rapidly detect the position with high skin tissue fluid content by detecting the distribution of the tissue fluid in the skin through ultrasound and identifying and positioning the tissue fluid based on the extracted region of interest, thereby assisting the collection of the tissue fluid and solving the problems of blindness, low efficiency and long time consumption of the skin tissue fluid during the collection.
In some optional embodiments, the preset frequency of the ultrasonic wave is 18MHz-40 MHz. In this way, a better resolution can be achieved.
In some alternative embodiments, the depth of the M-mode ultrasound image is 1500-2500 microns and the width of the M-mode ultrasound image is 3500-4500 microns.
In some optional embodiments, the upper boundary region of the gray scale map is a continuous region from a center point pixel value of a certain row in the gray scale map being greater than a first preset pixel value to a center point pixel value of a next row in the gray scale map being less than the first preset pixel value; the lower boundary area of the gray scale map is a continuous area from the point pixel value of the center of a certain row in the gray scale map being greater than a second preset pixel value to the point pixel value of the center of the next row in the gray scale map being less than the second preset pixel value.
In some optional embodiments, the upper boundary of the skin is a boundary from a center point pixel value of a certain row in the gray-scale map being greater than a first preset pixel value to a center point pixel value of a next row in the gray-scale map being less than the first preset pixel value; the lower boundary of the skin is the boundary 200 microns down the upper boundary of the skin.
Referring to FIG. 6, a block diagram of a system for locating skin interstitial fluid based on ultrasound detection is shown.
As shown in FIG. 6, the skin tissue fluid localization system 200 includes a scanning module 210, a converting module 220, an extracting module 230, a determining module 240, a defining module 250, and an outputting module 260.
The scanning module 210 is configured to scan the surface of the human skin according to ultrasonic waves with a preset frequency, so that at least one M-type ultrasonic image is obtained, wherein the at least one M-type ultrasonic image includes skin tissue fluid position information;
a conversion module 220 configured to convert the acquired at least one M-mode ultrasound image based on a preset grayscale image pixel value, so as to output a grayscale image of the at least one M-mode ultrasound image;
the extracting module 230 is configured to extract a region of interest in the gray-scale map based on a rectangular region frame with a preset size, where the extracting of the region of interest specifically includes:
removing an upper boundary in the gray scale image and a lower boundary in the gray scale image; determining an upper boundary of the epidermis and a lower boundary of the epidermis so as to remove the epidermis region; extracting an interested area in the residual area according to a rectangular area frame with a preset size, wherein the upper part of the rectangular area frame is aligned with the upper part of the residual area;
a determining module 240 configured to determine whether at least one pixel value in the region of interest is smaller than a preset pixel value;
a defining module 250 configured to take at least one pixel value in the region of interest as a foreground if the at least one pixel value is smaller than a preset pixel value, and take the at least one pixel value in the region of interest as a background if the at least one pixel value is not smaller than the preset pixel value, so as to obtain a binary image of the region of interest, wherein the foreground in the binary image is defined as a white pixel;
and the output module 260 is configured to detect the white pixels in the binary image according to a speckle detection algorithm and calculate the area of the white pixel region, so that an image of the localized skin tissue fluid is output.
It should be understood that the modules recited in fig. 6 correspond to various steps in the method described with reference to fig. 1. Thus, the operations and features described above for the method and the corresponding technical effects are also applicable to the modules in fig. 6, and are not described again here.
In other embodiments, the present invention further provides a computer-readable storage medium storing computer-executable instructions for performing the skin interstitial fluid localization method based on ultrasound detection in any of the above method embodiments;
as one embodiment, the computer-readable storage medium of the present invention stores computer-executable instructions configured to:
scanning the surface of human skin according to ultrasonic waves with preset frequency to obtain at least one M-shaped ultrasonic image, wherein the at least one M-shaped ultrasonic image comprises skin tissue fluid position information;
converting the acquired at least one M-shaped ultrasonic image based on a preset gray image pixel value so as to output a gray image of the at least one M-shaped ultrasonic image;
extracting an interested region in the gray-scale map based on a rectangular region frame with a preset size, wherein the extracting of the interested region specifically comprises the following steps:
removing an upper boundary area of the gray scale map and a lower boundary area of the gray scale map; determining an upper boundary of the epidermis and a lower boundary of the epidermis so as to remove the epidermis region; extracting an interested region in the residual region according to a rectangular region frame with a preset size, wherein the upper part of the rectangular region frame is aligned with the upper part of the residual region;
judging whether at least one pixel value in the region of interest is smaller than a third preset pixel value;
if at least one pixel value in the region of interest is smaller than a third preset pixel value, taking the at least one pixel value as a foreground, and if the at least one pixel value in the region of interest is not smaller than the third preset pixel value, taking the at least one pixel value as a background, so as to obtain a binary image of the region of interest, wherein the foreground in the binary image is defined as a white pixel;
and detecting the white pixels in the binary image according to a spot detection algorithm and calculating the area of a white pixel region, so that an image of the skin tissue fluid is output and positioned.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 7, the electronic device includes: a processor 310 and a memory 320. The electronic device may further include: an input device 330 and an output device 340. The processor 310, the memory 320, the input device 330, and the output device 340 may be connected by a bus or other means, as exemplified by the bus connection in fig. 7. The memory 320 is the computer-readable storage medium described above. The processor 310 executes various functional applications of the server and data processing by running the non-volatile software programs, instructions and modules stored in the memory 320, namely, implementing the skin tissue fluid localization method based on ultrasonic detection of the above method embodiments. Input device 330 may receive entered numerical or character information and generate key signal inputs related to user settings and functional control of the ultrasound probe-based dermal tissue fluid localization system. The output device 340 may include a display device such as a display screen.
The electronic device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
As an implementation mode, the electronic device is applied to a skin tissue fluid positioning system based on ultrasonic detection and used for a client, and comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to:
scanning the surface of human skin according to ultrasonic waves with preset frequency to obtain at least one M-shaped ultrasonic image, wherein the at least one M-shaped ultrasonic image comprises skin tissue fluid position information;
converting the acquired at least one M-shaped ultrasonic image based on a preset gray image pixel value so as to output a gray image of the at least one M-shaped ultrasonic image;
extracting an interested region in the gray-scale map based on a rectangular region frame with a preset size, wherein the extracting of the interested region specifically comprises the following steps:
removing an upper boundary area of the gray scale map and a lower boundary area of the gray scale map; determining an upper boundary of the epidermis and a lower boundary of the epidermis so as to remove the epidermis region; extracting an interested region in the residual region according to a rectangular region frame with a preset size, wherein the upper part of the rectangular region frame is aligned with the upper part of the residual region;
judging whether at least one pixel value in the region of interest is smaller than a third preset pixel value;
if at least one pixel value in the region of interest is smaller than a third preset pixel value, taking the at least one pixel value as a foreground, and if the at least one pixel value in the region of interest is not smaller than the third preset pixel value, taking the at least one pixel value as a background, so as to obtain a binary image of the region of interest, wherein the foreground in the binary image is defined as a white pixel;
and detecting the white pixels in the binary image according to a spot detection algorithm and calculating the area of a white pixel region, so that an image of the skin tissue fluid is output and positioned.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.