Object detection method and device based on biological image
Through the neutrophil adaptive mean shift algorithm and the greedy main curve model, the problem of insufficient accuracy of contour curves in CT scanner technology is solved, high-precision contour detection is achieved, and the doctor is assisted in completing diagnosis.
Patent Information
- Application Number
- CN202011225336.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-05
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN112365460B
Abstract
Description
Technical Field
[0001] The present application relates to a method and device for object detection based on biological images, belonging to the technical field of medical detection. Background Art
[0002] Commonly used medical imaging techniques include: Electronic Computer X-ray Tomography Technique (CT), Chest X-ray (CXR), and Magnetic Resonance Imaging (MRI). Considering the specificity of each imaging technique, this article mainly introduces CT as an example. CT uses the different attenuation coefficients of transmitted X-rays in various parts of the human body to reconstruct cross-sectional images of the human body. It is a fully functional disease detection instrument. The scanner used in computer axial tomography (CAT) can produce X-rays, which are a powerful electromagnetic energy. X-ray photons are basically the same as ordinary visible light photons, but they carry more energy. This higher energy level allows X-rays to pass directly through most soft tissues in the human body. Conventional X-ray imaging technology uses the principle of light and shadow. "Light" is irradiated from one side of the human body, and at this time, the film on the other side of the human body can record the outline of the bones.
[0003] In the prior art, a CT scanner is used to adjust the intensity of the X-rays through a computer to scan each type of tissue with the most suitable power. After the patient has completely passed through the instrument, the computer integrates all the scan information to form a detailed image of the human body. Of course, it is usually not necessary to scan the entire body. More often, doctors will choose a small part to scan. Since the CT scanner scans the human body layer by layer at all angles, the information it collects is much more comprehensive than traditional X-ray scans. Today, doctors use CT scanners for the diagnosis and treatment of various diseases, including head trauma, cancer, and osteoporosis.
[0004] However, the contour curves obtained by existing CT scanner technology are not accurate enough, making it difficult to achieve accurate diagnosis and surgery. Summary of the invention
[0005] The present application provides a method and device for object detection based on biological images. The present invention can automatically obtain high-precision contours and assist doctors in completing diagnosis through an improved object detection system based on neutrophil adaptive mean shift and greedy master curve.
[0006] Among them, the neutrophil adaptive mean shift algorithm is a fusion of the neutrophil filter and the adaptive mean shift algorithm. The fused neutrophil filter is used to filter the data that does not meet the domain characteristics, and then the adaptive mean shift algorithm is used for classification, and finally the filtering of the entire point set is realized.
[0007] The neutrophil filter was first proposed by Salama et al. in 2013, as shown in the following references.
[0008] [1]Salama AA,Elagamy H.Neutrosophic filters.International Journal of Computer Science Engineering and Information Technology Research(IJCSEITR).2013,3(1):307-312.
[0009] This application provides the following technical solutions:
[0010] In a first aspect, a method for object detection based on biological images is provided, the method comprising:
[0011] Get the sampling point set of the target image;
[0012] Using a neutrophil adaptive mean shift algorithm to filter the set of sampling points;
[0013] Generate a greedy principal curve using the filtered set of points;
[0014] Projecting the sampling point set onto the greedy principal curve to obtain a projection index;
[0015] The projection index is input into a pre-trained contour generation model to obtain the object contour in the target image.
[0016] Optionally, filtering the sampling point set using a neutrophil adaptive mean shift algorithm comprises:
[0017] Mapping the sampling point set to the neutrophil field to obtain a true set, a false set and an uncertain set of the sampling point set;
[0018] Filtering the set of sampling points using an uncertainty filter, wherein the uncertainty filter is set according to an uncertainty set;
[0019] Adaptively determining a current bandwidth, wherein a value of the bandwidth is set based on the uncertain set, a maximum value of the true set, and a minimum value of the true set;
[0020] Clustering unclassified pixels in the target image using the current bandwidth;
[0021] When there are unclassified pixels in the target image, the steps of filtering the sampling point set using the uncertainty filter again; adaptively determining the current bandwidth; and clustering the unclassified pixels in the target image using the current bandwidth are performed until there are no unclassified pixels in the target image, thereby obtaining the filtered point set.
[0022] Optionally, the uncertainty filter is represented by the following formula:
[0023]
[0024] σ I =f(I c (x, y)) = a × I c (x,y)+b
[0025] Among them, G Ic (x,y) is the kernel function of the filter, σ I is the standard deviation for determining the kernel function shape, f(·) is the uncertainty level of the mapping; a and b are parameters in the linear function used to convert the uncertainty value into the parameter value of the uncertainty filter.
[0026] Optionally, the adaptive determination of the current bandwidth is expressed by the following formula:
[0027] bw(x,y)=Ic(x,y)×(Tc max -Tc min )
[0028] Where: Tc max and Tc min are respectively the maximum and minimum values of the sampling points in the true set under the current cluster; Ic(x, y) is the sampling point in the uncertain set.
[0029] Optionally, clustering unclassified pixels in the target image using the current bandwidth includes:
[0030] When there is no cluster currently, the unclassified pixel points are taken as clusters;
[0031] When there is currently a cluster, the step of filtering the sampling point set using the uncertainty filter is performed again to determine whether the true value of the unclassified pixel point is within the true set range of the determined cluster. If so, the unclassified pixel point is divided into the cluster; if not, the unclassified pixel point is deleted.
[0032] Optionally, generating a greedy principal curve using the filtered point set includes:
[0033] The following steps are performed repeatedly until the angles between the line segments of the main curve are obtuse, the shape of the main curve is closed, and the line segment containing the most projection points is selected:
[0034] Classifying line segments or vertices obtained by projecting the sampling point set onto the current principal curve, and initializing the current principal curve as a first principal component line;
[0035] Based on the principle that the distance from the sampling point to the current main curve is minimal, adjusting the position of each vertex;
[0036] Filter the vertices using the current data radius;
[0037] Adaptively selecting the data radius based on a greedy algorithm;
[0038] When the current main curve does not converge, performing again the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current main curve;
[0039] When the current main curve converges and does not meet the loop stop condition, a new vertex is added, and the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current main curve is performed again.
[0040] Optionally, filtering the vertices using the current data radius includes:
[0041] Set the flag Flag(v i );
[0042] If the flag Flag(v i ) is 1, then the vertex is retained;
[0043] If the flag Flag(v i ) is 0, then delete the vertex;
[0044]
[0045] Where R is the data radius, lsi is the length of the i-th line segment; and l si =||v i+1 -v i ||1≤i≤m, where m is the number of vertices on the current main curve.
[0046] Optionally, the adaptively selecting the data radius based on a greedy algorithm includes:
[0047] For each sampling point, calculate the minimum distance E from the sampling point to the main curve min and the maximum distance E max;
[0048] If the number of vertices m<3, the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current principal curve is performed again;
[0049] If the number of vertices m ≥ 3, then find the central sampling point x i ; i is a positive integer;
[0050] Calculate the central sampling point x i The distance E to the current main curve i ;
[0051] If the central sampling point xi and the current main curve starting vertex v s The coordinates of are the same, then delete the central sampling point x i ;
[0052] Calculate the vertex v j-1 and vertex v j The distance between j-1j , initialize the inner radius [R d ,R u ], R d =d j-1j and R u =2 dj-1j ; Suitable radius R i =R d +(R u -R d ) / 2, wherein j is a positive integer;
[0053] If E min <=E i <=E max , then the central sampling point x i is the newly added vertex;
[0054] If E i <E min , R d =R i ; otherwise R u =R i , and get the final data radius R.
[0055] Optionally, the contour generation model is represented by the following formula:
[0056]
[0057] Among them, w i (i=1,2,..,S) is the weight of the neuron from the input layer to the i-th hidden layer;
[0058] v i,kis the weight from the i-th hidden layer neuron to the k-th output neuron;
[0059] b 1,i is the threshold of the i-th hidden layer neuron;
[0060] b 2,k is the threshold of the kth output neuron.
[0061] In a second aspect, a biological image-based object detection device is provided, the device comprising:
[0062] An image sampling module is used to obtain a set of sampling points of a target image;
[0063] A data filtering module, used for filtering the sampling point set using a neutrophil adaptive mean shift algorithm;
[0064] The curve generation module is used to generate the greedy principal curve using the filtered point set;
[0065] A data projection module, used for projecting the sampling point set onto the greedy principal curve to obtain a projection index;
[0066] The contour extraction module is used to input the projection index into a pre-trained contour generation model to obtain the object contour in the target image.
[0067] The beneficial effects of the present application are: by acquiring a set of sampling points of a target image; using a neutrophil adaptive mean shift algorithm to filter the set of sampling points; using the filtered point set to generate a greedy master curve; projecting the set of sampling points onto the greedy master curve to obtain a projection index; inputting the projection index into a pre-trained contour generation model to obtain the object contour in the target image; the problem of low accuracy of existing contour extraction methods can be solved; object detection can be automatically performed to obtain high-precision contours to assist doctors in completing diagnosis.
[0068] In addition, the present invention realizes point set filtering by using the neutrophil adaptive mean shift algorithm. Compared with the problem of excessive reliance on kernel bandwidth in the traditional mean shift algorithm, an adaptive kernel bandwidth selection mechanism is proposed; at the same time, an improved uncertainty filter is used to solve the problem of edge blurring and failure to consider local space and global features in the traditional Alpha mean filter, which leads to mis-segmentation.
[0069] In addition, the z-score normalization method used in the neutrophil adaptive mean shift algorithm of the present invention solves the problems that the traditional minimum-maximum normalization method has weak anti-interference ability and the maximum or minimum value of x or y will change and be recalculated when new data is inserted.
[0070] In addition, the present invention proposes an improved greedy master curve model to address the problems that the traditional master curve model cannot process closed data sets, cannot guarantee convergence, the generated master curve does not pass through the center of the data point, and is easily disturbed by error points to generate a deformed master curve. It also integrates artificial neural networks to express the mathematical model of the image area of interest and obtain the final contour.
[0071] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present application in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 is a flow chart of an object detection method provided by an embodiment of the present application;
[0073] Figure 2 is a flow chart of an object detection method provided by another embodiment of the present application;
[0074] Figure 3 It is a block diagram of an object detection device provided by one embodiment of the present application. DETAILED DESCRIPTION
[0075] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application but are not intended to limit the scope of the present application.
[0076] Figure 1 This is a flow chart of an object detection method based on biological images provided by an embodiment of the present application. The method includes at least the following steps:
[0077] Step 201: Obtain a sampling point set of a target image.
[0078] refer to Figure 3 , obtain the sampling point set of the target image, including: obtaining n d-dimensional sampling point sets X n ={x 1 ,...,x n},x i ∈R d The matrix expression of the sampling points is X = [x 1 ,...,x n ] T .
[0079] Optionally, refer to Figure 3 , the sampling point set can also be standardized. In this embodiment, the sampling point set is adjusted to the range of {(-1,1)} by using the z-score standardization method, where the sampling point (x i ,y i) is expressed as follows:
[0080]
[0081]
[0082] Among them, x max and x min is the maximum and minimum coordinates of the sampling point on the x-axis, x i is the sampling point; y max and min is the maximum and minimum coordinates of the sampling point on the y axis, y i is the sampling point.
[0083] Step 202: Filter the sampling point set using the neutrophil adaptive mean shift algorithm.
[0084] refer to Figure 2 , using the neutrophil adaptive mean shift algorithm to filter the sampling point set, including:
[0085] The sampling point set X n Mapped to the neutrophil field, we obtain the true set Tc, false set Fc and uncertain set Ic of the sampling point set;
[0086]
[0087]
[0088]
[0089] Among them: g(x, y) and Gd(x, y) are on different color channels of the sampling point (x, y).
[0090] Use the uncertainty filter to filter the sampling point set, retain the true set Tc, and the uncertainty filter is set according to the uncertainty set;
[0091] The uncertainty filter is expressed as follows:
[0092]
[0093] σ I =f(I c (x,y))=a×I c (x,y)+b
[0094] Among them, G Ic (x,y) is the kernel function of the filter, σ Iis the standard deviation that determines the shape of the kernel function, f(·) is the uncertainty level of the mapping; a and b are the parameters in the linear function used to convert the uncertainty value into the parameter value of the uncertainty filter.
[0095] Adaptively determine the current bandwidth, and the bandwidth value is set based on the maximum value of the uncertain set, the true set, and the minimum value of the true set;
[0096] The adaptive determination of the current bandwidth is expressed by the following formula:
[0097] bw(x,y)=Ic(x,y)×(Tc max -Tc min )
[0098] Where: Tc max and Tc min are the maximum and minimum values of the sampling points in the true set under the current cluster respectively; Ic(x, y) is the sampling point in the uncertain set.
[0099] Use the current bandwidth to cluster the unclassified pixels in the target image;
[0100] Specifically, when there is no cluster currently, the unclassified pixels are regarded as clusters;
[0101] When there are clusters currently, the step of filtering the sampling point set using the uncertainty filter is performed again to determine whether the true value of the unclassified pixel point is within the true set range of the determined cluster. If so, the unclassified pixel point is divided into the cluster; if not, the unclassified pixel point is deleted.
[0102] When there are unclassified pixels in the target image, the steps of filtering the sampling point set using the uncertainty filter again; adaptively determining the current bandwidth; clustering the unclassified pixels in the target image using the current bandwidth are performed until there are no unclassified pixels in the target image, thereby obtaining a filtered point set.
[0103] Step 203: Generate a greedy principal curve using the filtered point set.
[0104] Specifically, refer to Figure 3 , repeat the following steps until the angles between the segments of the main curve are obtuse, the shape of the main curve is closed, and the segment containing the most projection points is selected:
[0105] Classify the line segments or vertices obtained by projecting the sampling point set to the current principal curve, and initialize the current principal curve as the first principal component line; suppose the current principal curve f is a line with {v 1 ,…,v k+1} as the vertex, with {s 1 ,…,s k} is a polygonal line segment with edges, where s i With v i and v i+1 is the vertex.
[0106] Based on the principle of minimizing the distance from the sampling point to the current main curve, the position of each vertex is adjusted; at the same time, each line segment also changes accordingly;
[0107] Filter vertices using the current data radius;
[0108] Adaptively select data radius based on greedy algorithm;
[0109] When the current main curve does not converge, the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current main curve is performed again;
[0110] When the current main curve converges and the loop stop condition is not satisfied, a new vertex is added, and the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current main curve is performed again.
[0111] Among them, the vertices are filtered using the current data radius, including:
[0112] Set the flag Flag(v i );
[0113] If the flag Flag(v i ) is 1, the vertex is retained;
[0114] If the flag Flag(v i ) is 0, then delete the vertex;
[0115]
[0116] Among them, R is the data radius, l si is the length of the i-th line segment; and satisfies l si =||v i+1 -v i ||1≤i≤m, where m is the number of vertices on the current principal curve.
[0117] Adaptively select the data radius based on the greedy algorithm, including: for each sampling point, calculate the minimum distance E from the sampling point to the main curve min and the maximum distance E max ; If the number of vertices m<3, then perform the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current principal curve again; if the number of vertices m≥3, then find the central sampling point x i ; i is a positive integer; calculate the center sampling point x i Distance E to the current main curve i; If the center sampling point xi and the current main curve starting vertex v s If the coordinates of are the same, delete the central sampling point x i ; Calculate vertex v j-1 and vertex v j The distance between j-1j , initialize the inner radius [R d ,R u ], R d =d j-1j and R u =2 dj-1j ; Suitable radius R i =R d +(R u -R d ) / 2, j is a positive integer; if E min <=E i <=E max , then the central sampling point x i is the newly added vertex; if E i <E min , R d =R i ; otherwise R u =R i , and get the final data radius R.
[0118] Step 204 , projecting the sampling point set onto the greedy principal curve to obtain a projection index.
[0119] The projection index of the dataset is realized by projecting the dataset onto the greedy principal curve {t 1 ,t 2 ,…,t n}. According to the projection index t from small to large i The order of the data set (x i ,y i )(i=1,2,…,n) are sorted in sequence. The projection index is expressed as:
[0120] t f (x i )=sup{t:||x i -f(t)||=inf τ ||x i -f(τ)||
[0121] The resulting data sequence consists of ordered projection indices and point coordinates. The data sequence is represented as: {(t,(x i ,y i )),i=1,2,…,n,0≤t 1 <t 2 <… <t n≤1}; t is the projection index, (x i ,y i ) are the horizontal and vertical coordinates of the sampling points.
[0122] Step 205 , inputting the projection index into a pre-trained contour generation model to obtain the object contour in the target image.
[0123] The contour generation model is expressed as follows:
[0124]
[0125] Among them, w i (i=1,2,..,S) is the weight of the neuron from the input layer to the i-th hidden layer;
[0126] v i,k is the weight from the i-th hidden layer neuron to the k-th output neuron;
[0127] b 1,i is the threshold of the i-th hidden layer neuron;
[0128] b 2,k is the threshold of the kth output neuron.
[0129] The training process of the contour generation model includes: taking the projection index as the input of the artificial neural network model; initializing the artificial neural network model, setting the learning rate r, the momentum parameter m, the number of neurons S, the weight w and the threshold v; selecting the number of artificial neural network layers n, the number of neurons A in the input layer, the number of neurons Z in the hidden layer and the number of neurons U in the output layer; establishing the mathematical expression of the above contour generation model; calculating the input and output values of each layer in the forward propagation; calculating the output layer error in the back propagation; updating the parameters of the neural network model, such as the weight w and the threshold v; in the back propagation, calculating the global error E;
[0130]
[0131] Among them, the mean square error E k is the deviation between the true value y and the expected value c, and
[0132] In the global error E<10 -5 ; E decreases and reaches the maximum number of iterations epochs, such as: when MaxEpochs = 5000, the contour generation model is obtained.
[0133] Optionally, after the object outline is obtained, the object outline may be displayed.
[0134] In summary, the biological image-based object detection method provided in this embodiment obtains a set of sampling points of the target image; uses the neutrophil adaptive mean shift algorithm to filter the set of sampling points; uses the filtered point set to generate a greedy master curve; projects the set of sampling points onto the greedy master curve to obtain a projection index; inputs the projection index into a pre-trained contour generation model to obtain the object contour in the target image; can solve the problem of low accuracy of existing contour extraction methods; can automatically obtain high-precision contours, assist doctors in completing diagnosis, and reduce the workload of doctors in hand-drawing slice contours.
[0135] In addition, the present invention realizes point set filtering by using the neutrophil adaptive mean shift algorithm. Compared with the problem of excessive reliance on kernel bandwidth in the traditional mean shift algorithm, an adaptive kernel bandwidth selection mechanism is proposed; at the same time, an improved uncertainty filter is used to solve the problem of edge blurring and failure to consider local space and global features in the traditional Alpha mean filter, which leads to mis-segmentation.
[0136] In addition, the z-score normalization method used in the neutrophil adaptive mean shift algorithm of the present invention solves the problems that the traditional minimum-maximum normalization method has weak anti-interference ability and the maximum or minimum value of x or y will change and be recalculated when new data is inserted.
[0137] In addition, the present invention proposes an improved greedy master curve model to address the problems that the traditional master curve model cannot process closed data sets, cannot guarantee convergence, the generated master curve does not pass through the center of the data point, and is easily disturbed by error points to generate a deformed master curve. It also integrates artificial neural networks to express the mathematical model of the image area of interest and obtain the final contour.
[0138] Figure 3 4 is a block diagram of an object detection device based on biological images provided by an embodiment of the present application. The device comprises at least the following modules: an image sampling module 410 , a data filtering module 420 , a curve generating module 430 , a data projection module 440 and a contour extracting module 450 .
[0139] An image sampling module 410 is used to obtain a set of sampling points of a target image;
[0140] A data filtering module 420, configured to filter the sampling point set using a neutrophil adaptive mean shift algorithm;
[0141] A curve generation module 430, for generating a greedy principal curve using the filtered point set;
[0142] A data projection module 440 is used to project the sampling point set onto the greedy principal curve to obtain a projection index;
[0143] The contour extraction module 450 is used to input the projection index into a pre-trained contour generation model to obtain the object contour in the target image.
[0144] For relevant details, refer to the above method embodiment.
[0145] It should be noted that: the object detection device based on biological images provided in the above embodiments only uses the division of the above functional modules as an example when performing detection. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the object detection device based on biological images is divided into different functional modules to complete all or part of the functions described above. In addition, the object detection device based on biological images provided in the above embodiments and the object detection method embodiment based on biological images belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0146] Optionally, the present application also provides a computer-readable storage medium, in which a program is stored, and the program is loaded and executed by a processor to implement the object detection method based on biological images of the above method embodiment.
[0147] Optionally, the present application also provides a computer product, which includes a computer-readable storage medium, in which a program is stored, and the program is loaded and executed by a processor to implement the object detection method of the above method embodiment.
[0148] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0149] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for object detection based on biological images, characterized in that: The method comprises: Get the sampling point set of the target image; Using a neutrophil adaptive mean shift algorithm to filter the set of sampling points; Generate a greedy principal curve using the filtered set of points; Projecting the sampling point set onto the greedy principal curve to obtain a projection index; Inputting the projection index into a pre-trained contour generation model to obtain the object contour in the target image; Wherein, the filtering of the sampling point set using the neutrophil adaptive mean shift algorithm includes: Mapping the sampling point set to the neutrophil field to obtain a true set, a false set and an uncertain set of the sampling point set; Filtering the set of sampling points using an uncertainty filter, wherein the uncertainty filter is set according to an uncertainty set; Adaptively determining a current bandwidth, wherein a value of the bandwidth is set based on the uncertain set, a maximum value of the true set, and a minimum value of the true set; Clustering unclassified pixels in the target image using the current bandwidth; When there is no cluster currently, the unclassified pixel points are taken as clusters; When there is a cluster currently, the step of filtering the sampling point set using the uncertainty filter is performed again to determine whether the true value of the unclassified pixel point is within the true set range of the determined cluster, and if so, the unclassified pixel point is divided into the cluster; if not, the unclassified pixel point is deleted; When there are unclassified pixels in the target image, the steps of filtering the sampling point set using the uncertainty filter again; adaptively determining the current bandwidth; clustering the unclassified pixels in the target image using the current bandwidth are performed until there are no unclassified pixels in the target image, thereby obtaining the filtered point set. The method of generating a greedy principal curve using the filtered point set includes: The following steps are performed repeatedly until the angles between the line segments of the main curve are obtuse, the shape of the main curve is closed, and the line segment containing the most projection points is selected: Classifying line segments or vertices obtained by projecting the sampling point set onto the current principal curve, and initializing the current principal curve as a first principal component line; Based on the principle that the distance from the sampling point to the current main curve is minimal, adjusting the position of each vertex; Filter the vertices using the current data radius; Adaptively selecting the data radius based on a greedy algorithm; When the current main curve does not converge, performing again the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current main curve; When the current main curve converges and does not meet the loop stop condition, a new vertex is added, and the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current main curve is performed again; The filtering the vertices using the current data radius includes: Set the flag Flag(v i ); If the flag Flag(v i ) is 1, then the vertex is retained; If the flag Flag(v i ) is 0, then delete the vertex; Wherein, R is the data radius; l si is the length of the i-th line segment; and satisfies l si =||v i+1 -v i ||1≤i≤m, m is the number of vertices on the current main curve; v i is the i-th vertex; The adaptively selecting the data radius based on a greedy algorithm includes: For each sampling point, calculate the minimum distance E from the sampling point to the main curve min and the maximum distance E max ; If the number of vertices m<3, the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current principal curve is performed again; If the number of vertices m ≥ 3, then find the central sampling point x i ; i is a positive integer; Calculate the central sampling point x i The distance E to the current main curve i ; If the central sampling point xi and the current main curve starting vertex v s The coordinates of are the same, then delete the central sampling point x i ; Calculate the vertex v j-1 and vertex v j The distance between j-1j , initialize the inner radius [R d ,R u ], R d =d j-1j and R u =2 dj-1j ; Suitable radius R i =R d +(R u -R d ) / 2, wherein j is a positive integer; If E min <=E i <=E max , then the central sampling point x i is the newly added vertex; If E i <E min , R d =R i ; otherwise R u =R i , and get the final data radius R.
2. The method according to claim 1, characterized in that The uncertainty filter is expressed by the following equation: σ I =f(I c (x,y))=a×I c (x,y)+b Among them, G Ic (x,y) is the kernel function of the filter, σ I is the standard deviation of the kernel function shape, f(·) is the uncertainty level of the mapping; a and b are parameters in the linear function used to convert the uncertainty value into the parameter value of the uncertainty filter; Ic(x, y) is the sampling point in the uncertainty set.
3. The method according to claim 2, characterized in that The adaptive determination of the current bandwidth is expressed by the following formula: bw(x,y)=Ic(x,y)×(Tc max -Tc min ) Where: Tc max and Tc min are respectively the maximum and minimum values of the sampling points in the true set under the current cluster; Ic(x, y) is the sampling point in the uncertain set.
4. A biological image-based object detection device, characterized in that: The device comprises: An image sampling module is used to obtain a set of sampling points of a target image; A data filtering module, used for filtering the sampling point set using a neutrophil adaptive mean shift algorithm; The curve generation module is used to generate the greedy principal curve using the filtered point set; A data projection module, used for projecting the sampling point set onto the greedy principal curve to obtain a projection index; A contour extraction module, used for inputting the projection index into a pre-trained contour generation model to obtain the object contour in the target image; Methods for generating greedy principal curves using filtered point sets include: The following steps are performed repeatedly until the angles between the line segments of the main curve are obtuse, the shape of the main curve is closed, and the line segment containing the most projection points is selected: Classifying line segments or vertices obtained by projecting the sampling point set onto the current principal curve, and initializing the current principal curve as a first principal component line; Based on the principle that the distance from the sampling point to the current main curve is minimal, adjusting the position of each vertex; Filter the vertices using the current data radius; Adaptively selecting the data radius based on a greedy algorithm; When the current main curve does not converge, performing again the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current main curve; When the current main curve converges and does not meet the loop stop condition, a new vertex is added, and the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current main curve is performed again; The filtering the vertices using the current data radius includes: Set the flag Flag(v i ); If the flag Flag(v i ) is 1, then the vertex is retained; If the flag Flag(v i ) is 0, then delete the vertex; Where R is the data radius, l si is the length of the i-th line segment; and satisfies l si =||v i+1 -v i ||1≤i≤m, m is the number of vertices on the current main curve; v i is the i-th vertex; The adaptively selecting the data radius based on a greedy algorithm includes: For each sampling point, calculate the minimum distance E from the sampling point to the main curve min and the maximum distance E max ; If the number of vertices m<3, the step of classifying the line segments or vertices obtained by projecting the sampling point set onto the current principal curve is performed again; If the number of vertices m ≥ 3, then find the central sampling point x i ; i is a positive integer; Calculate the central sampling point x i The distance E to the current main curve i ; If the central sampling point xi and the current main curve starting vertex v s The coordinates of are the same, then delete the central sampling point x i ; Calculate the vertex v j-1 and vertex v j The distance between j-1j , initialize the inner radius [R d ,R u ], R d =d j-1j and R u =2 dj-1j ; Suitable radius R i =R d +(R u -R d ) / 2, wherein j is a positive integer; If E min <=E i <=E max , then the central sampling point x i is the newly added vertex; If E i <E min , R d =R i ; otherwise R u =R i , and get the final data radius R.
