A Finger Vein Image Segmentation Method Based on Improved Active Contour Algorithm
Through the improved active contour algorithm and fuzzy mean clustering algorithm, combined with the energy functional model and the fruit fly optimization algorithm, the problem of discontinuous veins in finger vein image segmentation is solved, the segmentation accuracy and stability are improved, and it is suitable for various types of Iterative optimization of vein images ensures the accuracy of the segmentation model.
Patent Information
- Application Number
- CN202210384937.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-13
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-04-13
AI Technical Summary
The existing technology has the problem of vein discontinuity in the finger vein image segmentation process, resulting in low image accuracy and unclear features. Moreover, traditional algorithms are sensitive to changes in temperature, illumination, and physical conditions, making it difficult to achieve accurate segmentation.
Using an improved active contour algorithm, including local binary fitting and fuzzy mean clustering algorithm, the energy functional model is constructed through Heaviside function, level set function and Gaussian kernel function, combined with the fruit fly optimization algorithm and fuzzy C-means clustering algorithm. Perform image segmentation processing, obtain initial contours and iteratively optimize to improve segmentation accuracy.
It solves the problem of vein discontinuity, improves the accuracy and stability of finger vein image segmentation, does not rely on a large number of sample training, is suitable for iterative optimization of various types of vein images, and ensures the accuracy of the segmentation model.
Smart Images

Figure CN114677395B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of image processing, and in particular relates to a finger vein image segmentation method based on an improved active contour algorithm. Background Art
[0002] As people's requirements for the security and accuracy of biometric systems become higher and higher, biometric recognition technology has received more and more attention. As one of the many biometric recognition technologies, finger vein recognition has become a hot topic of current research due to its advantages such as non-contact collection, liveness detection, difficulty in forgery, and low cost. The segmentation of blood vessels in finger vein images is a key step in finger vein recognition technology. The captured finger vein images contain not only vein patterns, but also irregular noise and shadows caused by different thicknesses of finger bones and muscles. In addition, finger veins will change with changes in temperature or physical conditions, making it difficult to accurately extract the details of the finger veins. Therefore, how to accurately segment the finger vein image directly affects the precision and accuracy of subsequent recognition.
[0003] During the acquisition process of finger vein images, due to light attenuation caused by absorption by other tissues in the finger, the captured finger vein images not only have low contrast, but also contain irregular noise and shadows caused by different thicknesses of phalanges and muscles; in addition, finger vein features will not only change temporarily with changes in temperature, physical conditions, external lighting, etc., but will also be affected by translation, rotation, finger pressure, and acquisition posture during the acquisition process. These influences will easily lead to the problem of venous discontinuity in the feature extraction process using traditional algorithms, resulting in low accuracy and unclear features of the acquired finger vein images. Summary of the invention
[0004] In order to solve the problems existing in the above prior art, the present invention proposes a finger vein image segmentation method based on an improved active contour algorithm, the method comprising: obtaining a finger vein image to be segmented; using the improved active contour algorithm to segment the finger vein image to be segmented to obtain a segmented finger vein image; the process of using the improved active contour algorithm to process the finger vein image to be segmented comprises:
[0005] S1: Finger vein image segmentation model is constructed using local binary fitting active contour algorithm;
[0006] S2: using an improved fuzzy mean clustering algorithm to calculate the initial contour of the finger vein image to be segmented, and using the initial contour as the initial finger vein contour of the finger vein image segmentation model;
[0007] S3: Segment the finger vein image to be segmented using a finger vein image segmentation model according to the initial finger vein contour.
[0008] Preferably, the process of constructing a finger vein image segmentation model includes: obtaining a Heaviside function, a level set function, and a Gaussian kernel function; calculating an internal mean f1 of the intersection of a circle with x as the center and a zero level set contour and an external mean f2 of the intersection of a circle with x as the center and a zero level set contour according to the Heaviside function, the level set function, and the Gaussian kernel function; obtaining an intensity mapping from a pixel set to a pixel, and constructing an energy functional model according to the internal mean f1, the external mean f2, and the intensity mapping, wherein the energy functional model is a finger vein structure feature segmentation model.
[0009] Furthermore, the expression of the energy functional model is:
[0010] ε lbf (φ,f1,f2)=α1∫∫ Ω K σ (xy)|I(y)-f1(x)| 2 H τ (φ(y))dydx+α2∫∫ Ω K σ (xy)|I(y)-f2(x)| 2 (1-H τ (φ(y)))dydx
[0011] Among them, ε lbf represents the energy functional model, φ represents the level set function, f1 represents the inner mean of the intersection of the circle with x as the center and the zero level set contour, f2 represents the outer mean of the intersection of the circle with x as the center and the zero level set contour, α1 and α2 both represent constants greater than 0, K σ represents the Gaussian kernel function with a scale factor of σ, I(.) represents the intensity mapping from pixel set to pixel, y represents the pixel point, x represents the circle centered on x, and H τ represents the Heaviside function, and Ω represents all pixels in the image.
[0012] Preferably, the process of calculating the initial contour of the finger vein image to be segmented includes: using a fuzzy C-means clustering algorithm based on a fruit fly optimization algorithm to obtain the initial contour, the steps of which include:
[0013] Step 1: Initialize parameters; initialization parameters include setting the initial number of cluster centers n and the maximum number of cluster centers;
[0014] Step 2: Use the fruit fly optimization algorithm to obtain the global optimal solution, which is the optimal cluster center under the current cluster center n condition;
[0015] Step 3: Record the flavor concentration value Sm when the current number of cluster centers n corresponds to the optimal value;
[0016] Step 4: When the number of cluster centers n is greater than the set maximum number of cluster centers, the fruit fly optimization algorithm ends; when the number of cluster centers n is less than or equal to the set maximum number of cluster centers, n=n+1 is set, and the algorithm returns to step 2 to continue the optimization algorithm;
[0017] Step 5: Compare all values of n to obtain the flavor concentration value Sm at the optimal solution, that is, when the flavor concentration value is the largest, the number of cluster centers is the optimal number of cluster centers, and output the position value corresponding to the cluster center; use this position value as the initial cluster center position;
[0018] Step 6: Use the fuzzy C-means clustering algorithm to segment the image to be segmented according to the initial cluster center position, output the initial segmentation result of the finger vein image, and set it as the initial contour of the segmentation model.
[0019] Furthermore, the process of using the fruit fly optimization algorithm to obtain the global optimal solution includes:
[0020] Step 21: Obtain the fruit fly population position range Pr and the fruit fly single flight range Sr;
[0021] Step 22: Calculate the initial positions x and y of the fruit fly population according to the fruit fly population position range Pr and the fruit fly single flight range Sr;
[0022] Step 23: The fruit flies in the group conduct random searches based on the food odor and obtain new position coordinates (x i ,y i );
[0023] Step 24: Calculate the distance D between the individual position and the origin i , and calculate the flavor concentration judgment value s based on the distance i ;
[0024] Step 25: Determine the value s based on the flavor concentration i Calculate the flavor concentration value Sm at the location of the fruit fly individual i ;
[0025] Step 26: Select the fruit fly individual with the best flavor concentration value in the population, record the concentration value bestSm and the position bestId, and calculate the maximum value max(Sm), which is the position with the best flavor concentration value;
[0026] Step 27: Repeat steps 23 to 26 to determine whether the odor concentration after the iteration is better than the concentration value before the iteration update. If so, execute step 28, otherwise continue the iteration operation;
[0027] Step 28: Other fruit fly individuals update their positions according to the obtained optimal concentration value.
[0028] Preferably, the process of segmenting the image to be segmented using the fuzzy C-means clustering algorithm includes:
[0029] Step 61: Obtaining the objective function of the fuzzy C-means clustering algorithm according to the initial cluster center position;
[0030] Step 62: Determine the membership matrix U = {u ij}; the constraint expression is:
[0031]
[0032] Among them, n represents the number of cluster centers, u ij represents the membership function of the jth class corresponding to the i-th sample, and c represents the total number of cluster centers;
[0033] Step 63: Using the Lagrange multiplier method to obtain the minimum function of the objective function;
[0034] Step 64: Membership u to the minimum function ij Find the partial derivative and get the partial derivative function of the membership degree;
[0035] Step 65: Simplify the minimum function of the objective function according to the constraint conditions, and substitute the simplified expression into the membership partial derivative function to obtain the membership formula;
[0036] Step 66: c of the minimum value function of the objective function j Take partial derivatives and get the cluster center formula;
[0037] Step 67: Repeat the calculation of u ij and c j , according to the obtained u ij and c j The objective function Z is updated until the optimal solution is reached, and the image is segmented using the optimal value.
[0038] Furthermore, the objective function expression is:
[0039]
[0040] in, represents the membership function value of the jth class corresponding to the i-th sample after weighting, l represents the weighted value of the sample to the cluster center, x i Indicates variable parameters, c j Represents the cluster center.
[0041] Preferably, the membership formula is:
[0042]
[0043] Among them, n represents the number of cluster centers, l represents the weighted value of the sample to the cluster center, and x i Indicates variable parameters, c j Represents the center of the cluster.
[0044] Preferably, the cluster center expression is:
[0045]
[0046] in, represents the membership function value of the jth class corresponding to the i-th sample after weighting, l represents the weighted value of the sample to the cluster center, x i Represents a variable parameter.
[0047] Preferably, the process of segmenting the finger vein image to be segmented using the finger vein image segmentation model includes:
[0048] Step 1: Initialize parameters α1 and α2;
[0049] Step 2: Obtain the initial finger vein contour, and initialize the level set in the finger vein image segmentation model according to the initial finger vein contour;
[0050] Step 3: Use the gradient descent algorithm to solve the energy functional model for minimization of the level set function φ; that is, calculate the internal mean f1 intersecting with the zero level set contour, the external mean f2 intersecting with the zero level set contour, the curve fitting energy term e1 and the curve fitting energy term e2;
[0051] Step 4: Use the variational method to represent the gradient descent flow of the energy functional model, regularize the gradient descent flow formula, and obtain the regularized gradient flow equation;
[0052] Step 5: Update the level set function according to the regularized gradient flow equation;
[0053] Step 6: Determine whether the regularized gradient flow equation converges. If not, return to step 3 to continue iterating. If converged, output the updated level set function.
[0054] Beneficial effects of the present invention:
[0055] The present invention can not only solve the problem of venous discontinuity in the finger vein image segmentation process, but also the entire model does not require a large number of sample training to improve the segmentation accuracy of the vein image. For each vein image, the model will perform iterative optimization operations to output the optimal initial finger vein segmentation result, and then further perform finger vein image segmentation on this basis to ensure the stability and accuracy of the segmentation model. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 It is a flow chart of the active contour finger vein image segmentation algorithm of the present invention;
[0057] Figure 2 It is a flowchart of initial contour acquisition in the active contour finger vein image segmentation algorithm of the present invention;
[0058] Figure 3 It is a flow chart of the fruit fly optimization algorithm in the active contour finger vein image segmentation algorithm of the present invention;
[0059] Figure 4 This is a flow chart of the fuzzy C-means clustering algorithm in the active contour finger vein image segmentation algorithm of the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] A finger vein image segmentation method based on an improved active contour algorithm, such as Figure 1 As shown, the method includes: obtaining a finger vein image to be segmented; using an improved active contour algorithm to segment the finger vein image to be segmented to obtain a segmented finger vein image; the process of using the improved active contour algorithm to process the finger vein image to be segmented includes:
[0062] S1: Finger vein image segmentation model is constructed using local binary fitting active contour algorithm;
[0063] S2: using an improved fuzzy mean clustering algorithm to calculate the initial contour of the finger vein image to be segmented, and using the initial contour as the initial finger vein contour of the finger vein image segmentation model;
[0064] S3: Segment the finger vein image to be segmented using a finger vein image segmentation model according to the initial finger vein contour.
[0065] The process of constructing the finger vein image segmentation model includes: obtaining the Heaviside function, Gaussian kernel function and level set function; calculating the internal and external local means of the image according to the Heaviside function, Gaussian kernel function and level set function; and constructing the energy functional model according to the internal and external local means. When the level set function φ is in the zero level set, the image domain can be divided into two non-intersecting inner and outer contour regions, and the inner contour is represented by H τ (φ)I(x), the outer contour is represented by 1-H τ(φ)I(x). When the level set function φ continues to evolve, the inner and outer contours also continue to change until the target edge converges, completing the rough segmentation of the finger vein image and realizing the establishment of the segmentation model.
[0066] H τ The expression of the function is:
[0067]
[0068] Where φ represents the level set function.
[0069] K σ The expression of (x) is:
[0070]
[0071] Among them, σ controls the scale of the kernel function, and n represents the number of cluster centers.
[0072] The formula for calculating the internal and external local mean of an image based on the Heaviside function, Gaussian kernel function, and level set function is:
[0073] The expression for the interior mean of a circle centered at x intersecting the zero level set contour is:
[0074]
[0075] The expression for the outer mean of the circle centered at x intersecting the zero level set contour is:
[0076]
[0077] Among them, K σ (x) represents the Gaussian kernel function with a scale factor of σ, H τ represents the Heaviside function, φ(x) represents the level set function, and I(x) represents the intensity mapping from pixel set to pixel.
[0078] The energy functional model is defined by the kernel function, and its formula is:
[0079] ε lbf (φ,f1,f2)=α1∫∫ Ω K σ (xy)|I(y)-f1(x)| 2 H τ (φ(y))dydx
[0080] +α2∫∫ Ω K σ (xy)|I(y)-f2(x)| 2 (1-H τ (φ(y)))dydx
[0081] Among them, ε lbf represents the energy functional model, φ represents the level set function, f1 represents the inner mean of the intersection of the circle with x as the center and the zero level set contour, f2 represents the outer mean of the intersection of the circle with x as the center and the zero level set contour, α1 and α2 both represent constants greater than 0, K σ represents the Gaussian kernel function with a scale factor of σ, I(.) represents the intensity mapping from pixel set to pixel, y represents the pixel point, x represents the circle centered on x, and H τ represents the Heaviside function, and Ω represents all pixels in the image.
[0082] like Figure 2 As shown, the process of calculating the initial contour of the finger vein image to be segmented includes: using a fuzzy C-means clustering algorithm based on a fruit fly optimization algorithm to obtain the initial contour, and the steps include:
[0083] Step 1: Initialize various parameters, set the initial number of cluster centers n, and the maximum number of cluster centers;
[0084] Step 2: According to the steps of the fruit fly optimization algorithm, use the steps of the fruit fly optimization algorithm to find the global optimal solution. The optimal result found is the optimal cluster center under the condition of the current cluster center n;
[0085] Step 3: Record the flavor concentration value Sm when the current number of cluster centers n corresponds to the optimal value;
[0086] Step 4: When the number of cluster centers n is greater than the set maximum number of cluster centers, the fruit fly optimization algorithm ends; when the number of cluster centers n is less than or equal to the set maximum number of cluster centers, n=n+1 is set, and the algorithm returns to step 2 to continue the optimization algorithm;
[0087] Step 5: By comparing all the values of n, the flavor concentration value Sm at the optimal solution is found. The number of cluster centers with the maximum value is determined as the optimal number of cluster centers, and the position value corresponding to the cluster center output at this time is used as the initial cluster center position for the subsequent execution of the fuzzy C-means clustering algorithm;
[0088] Step 6: Input cluster centers according to the fruit fly optimization algorithm;
[0089] Step 7: Execute the fuzzy C-means clustering algorithm, output the initial segmentation result of the finger vein image, and set it as the initial contour of the segmentation model.
[0090] like Figure 3 As shown in the figure, the implementation process of the fruit fly optimization algorithm includes: using Pr to represent the position range of the fruit fly population, using Sr to represent the single flight range of the fruit fly, using (x, y) to represent the position information of each fruit fly individual, setting the initial conditions, and the steps are as follows:
[0091] Step 1: Randomly obtain the initial positions x and y of the fruit fly population;
[0092] x=rand(Pr)
[0093] y=rand(Pr)
[0094] Among them, rand() represents the random generation function.
[0095] Step 2: Each fruit fly in the group will randomly search for food smells and obtain new position coordinates (x i ,y i );
[0096] x i =x+rand(Sr)
[0097] y i =y+rand(Sr)
[0098] Step 3: Calculate the distance D between the individual position and the origin i , and calculate the flavor concentration judgment value s based on the distance i ;
[0099]
[0100]
[0101] Step 4: s i Substitute into the judgment function and calculate the flavor concentration value Sm at the location of the fruit fly individual i ;
[0102] Sm i =Fiction(s i )
[0103] Among them, Fiction represents the judgment function.
[0104] Step 5: Select the fruit fly individual with the best flavor concentration value in the population, record the concentration value bestSm and the position bestId, and calculate the maximum value max(Sm);
[0105] [bestSm, bestId] = max(Sm)
[0106] Step 6: Repeat steps 2 to 5 to determine whether the odor concentration after iteration is better than the concentration value before iteration. If so, execute step 7, otherwise continue the iteration operation;
[0107] Step 7: After obtaining the optimal concentration value, other fruit flies use vision to act according to the position information. The formula is as follows:
[0108] Smbest=bestSm
[0109] x=x(bestId)
[0110] y=y(bestId)
[0111] like Figure 4 As shown in the figure, the process of using the fuzzy C-means clustering algorithm to segment the image includes: considering a finger vein image as a collection of all pixels. If the number of all pixels in the image is n, and the total number of pixels is divided into c categories, then there are c total cluster centers, which are represented by c j , then the i-th sample point x i About the jth cluster center c j The membership degree is represented by u ij The specific steps include:
[0112] Step 1: Obtain the objective function of the fuzzy C-means clustering algorithm based on the initial cluster center position; the expression of the objective function is:
[0113]
[0114] in, represents the membership function value of the jth class corresponding to the i-th sample after weighting, l represents the weighted value of the sample to the cluster center, x i Indicates variable parameters, c j represents the cluster center, ||x i -c j || 2 Represents the sample point x i to c j The Euclidean distance of .
[0115] Step 2: Determine the membership matrix U = {u ij}; the constraint expression is:
[0116]
[0117] Step 3: Use the Lagrange multiplier method to obtain the minimum function of the objective function; its expression is:
[0118]
[0119] Among them, λ is the Lagrange multiplier and F represents the minimum value of the objective function.
[0120] Step 4: Membership u to the minimum function ij Find the partial derivative and get the partial derivative function of the membership degree; its expression is:
[0121]
[0122] Step 5: Add constraints Substituting into step 3, we get the following formula:
[0123]
[0124] Step 6: Substitute the formula obtained in step 5 into the formula in step 4 to obtain the membership formula, as shown below:
[0125]
[0126] Step 7: F about c j The cluster center formula is obtained by partial derivative, as shown below:
[0127]
[0128] Step 8: Repeatedly calculate u i j and c j , continuously update the objective function Z until the optimal solution is reached, and use the optimal value to achieve image segmentation.
[0129] The process of segmenting the finger vein image to be segmented using the finger vein image segmentation model includes:
[0130] Step 1: Initialize parameters α1 and α2;
[0131] Step 2: Obtain the initial finger vein contour, and initialize the level set in the finger vein image segmentation model according to the initial finger vein contour;
[0132] Step 3: Use the gradient descent algorithm to solve the energy functional model for minimization of the level set function φ; that is, calculate the internal mean f1 intersecting with the zero level set contour, the external mean f2 intersecting with the zero level set contour, the curve fitting energy term e1 and the curve fitting energy term e2;
[0133] Step 4: Use the variational method to represent the gradient descent flow of the energy functional model, regularize the gradient descent flow formula, and obtain the regularized gradient flow equation;
[0134] Step 5: Update the level set function according to the regularized gradient flow equation;
[0135] Step 6: Determine whether the regularized gradient flow equation converges. If not, return to step 3 to continue iterating. If converged, output the updated level set function.
[0136] Specifically, the gradient descent algorithm is used to obtain the energy functional model ε lbf (φ,f1,f2) For the minimization of φ, the expression is:
[0137]
[0138] in, Represents the functional model ε lbf of Derivatives; Represents the gradient descent flow of the energy functional.
[0139] The variational method is used to further express the gradient descent flow of the energy functional, which is expressed as follows:
[0140]
[0141] Among them, e1 is the energy term of the curve fitting, e2 is the energy term of the curve fitting; δ τ is the energy functional model ε lbf Heaviside function H in (φ,f1,f2) τ The derivative of; the expressions of e1 and e2 are:
[0142] e1(x)=∫ Ω K σ (yx)|I(x)-f1(y)| 2 dy
[0143] e2(x)=∫ Ω K σ (yx)|I(x)-f2(y)| 2 dy
[0144] Among them, K σ (yx) represents the Gaussian kernel function at yx, f1(y) represents the inner mean of the circle with y as the center and the zero level set contour, f2(y) represents the outer mean of the circle with y as the center and the zero level set contour, and I(x) represents the pixel point x in image I.
[0145] δ τ The expression is:
[0146]
[0147] Wherein, τ represents the effective width.
[0148] In order to enhance the stability of the evolution of the level set function φ, regularization is introduced into the energy functional gradient descent flow equation expressed by the variational method. The gradient flow equation after regularization is shown as follows, and it continues to evolve according to the following formula until convergence. The target edge is located by the corresponding curve or contour to achieve finger vein image segmentation.
[0149]
[0150] Among them, α1, α2, a, and b are all parameters. is the gradient value of φ, is the gradient modulus of φ, is the Laplace operator, and div(·) is the divergence operator.
[0151] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A finger vein image segmentation method based on an improved active contour algorithm, characterized in that: include: Acquire a finger vein image to be segmented; The finger vein image to be segmented is segmented by using an improved active contour algorithm to obtain a segmented finger vein image; The process of processing the finger vein image to be segmented using the improved active contour algorithm includes: S1: A finger vein image segmentation model is constructed using a local binary fitting active contour algorithm; the specific process includes: obtaining the Heaviside function, the level set function, and the Gaussian kernel function; calculating the internal mean f1 of the intersection of a circle with x as the center and the zero level set contour and the external mean f2 of the intersection of a circle with x as the center and the zero level set contour according to the Heaviside function, the level set function, and the Gaussian kernel function; obtaining the intensity mapping from pixel set to pixel, and constructing an energy functional model according to the internal mean f1, the external mean f2, and the intensity mapping, which is a finger vein structure feature segmentation model; the energy functional model expression is: Among them, ε lbf represents the energy functional model, φ represents the level set function, f1 represents the inner mean of the intersection of the circle with x as the center and the zero level set contour, f2 represents the outer mean of the intersection of the circle with x as the center and the zero level set contour, α1 and α2 both represent constants greater than 0, K σ represents the Gaussian kernel function with a scale factor of σ, I(.) represents the intensity mapping from pixel set to pixel, y represents the pixel point, x represents the circle centered on x, and H τ represents the Heaviside function, Ω represents all pixels in the image; S2: using an improved fuzzy mean clustering algorithm to calculate the initial contour of the finger vein image to be segmented, and using the initial contour as the initial finger vein contour of the finger vein image segmentation model; the process of calculating the initial contour of the finger vein image to be segmented includes: using a fuzzy C-means clustering algorithm based on a fruit fly optimization algorithm to obtain the initial contour, and the steps are: Step 1: Initialize parameters; initialization parameters include setting the initial number of cluster centers n and the maximum number of cluster centers; Step 2: Use the fruit fly optimization algorithm to obtain the global optimal solution, which is the optimal cluster center under the current cluster center n condition; Step 3: Record the flavor concentration value Sm when the current number of cluster centers n corresponds to the optimal value; Step 4: When the number of cluster centers n is greater than the set maximum number of cluster centers, the fruit fly optimization algorithm ends; when the number of cluster centers n is less than or equal to the set maximum number of cluster centers, n=n+1 is set, and the algorithm returns to step 2 to continue the optimization algorithm; Step 5: Compare all values of n to obtain the flavor concentration value Sm at the optimal solution, that is, when the flavor concentration value is the largest, the number of cluster centers is the optimal number of cluster centers, and output the position value corresponding to the cluster center; use the position value as the initial cluster center position; Step 6: Use the fuzzy C-means clustering algorithm to segment the image to be segmented according to the initial cluster center position, output the initial segmentation result of the finger vein image, and set it as the initial contour of the segmentation model; S3: Segmenting the finger vein image to be segmented using the finger vein image segmentation model according to the initial finger vein contour; specifically including: Step 1: Initialize parameters α1 and α2; Step 2: Obtain the initial finger vein contour, and initialize the level set in the finger vein image segmentation model according to the initial finger vein contour; Step 3: Use the gradient descent algorithm to solve the energy functional model for minimization of the level set function φ; that is, calculate the internal mean f1 intersecting with the zero level set contour, the external mean f2 intersecting with the zero level set contour, the curve fitting energy term e1 and the curve fitting energy term e2; Step 4: Use the variational method to represent the gradient descent flow of the energy functional model, regularize the gradient descent flow formula, and obtain the regularized gradient flow equation; Step 5: Update the level set function according to the regularized gradient flow equation; Step 6: Determine whether the regularized gradient flow equation converges. If not, return to step 3 to continue iterating. If converged, output the updated level set function.
2. According to claim 1, a finger vein image segmentation method based on an improved active contour algorithm is characterized in that: The process of using the fruit fly optimization algorithm to obtain the global optimal solution includes: Step 21: Obtain the fruit fly population location range Pr and the fruit fly single flight range Sr; Step 22: Calculate the initial positions x and y of the fruit fly population according to the fruit fly population position range Pr and the fruit fly single flight range Sr; Step 23: The fruit flies in the group conduct random searches based on the food odor and obtain new position coordinates (x i ,y i ); Step 24: Calculate the distance D between the individual position and the origin i , and calculate the flavor concentration judgment value s based on the distance i ; Step 25: Determine the value s based on the flavor concentration i Calculate the flavor concentration value Sm at the location of the fruit fly individual i ; Step 26: Select the fruit fly individual with the best flavor concentration value in the population, record the concentration value bestSm and the position bestId, and calculate the maximum value max(Sm), which is the position with the best flavor concentration value; Step 27: Repeat steps 23 to 26 to determine whether the odor concentration after the iteration is better than the concentration value before the iteration update. If so, execute step 28, otherwise continue the iteration operation; Step 28: Other fruit fly individuals update their positions according to the obtained optimal concentration value.
3. The finger vein image segmentation method based on the improved active contour algorithm according to claim 1, characterized in that: The process of segmenting the image to be segmented using the fuzzy C-means clustering algorithm includes: Step 61: Obtaining the objective function of the fuzzy C-means clustering algorithm according to the initial cluster center position; Step 62: Determine the membership matrix U = {u ij }; the constraint expression is: Among them, n represents the number of cluster centers, u ij represents the membership function of the jth class corresponding to the i-th sample, and c represents the total number of cluster centers; Step 63: Using the Lagrange multiplier method to obtain the minimum function of the objective function; Step 64: Membership u to the minimum function ij Find the partial derivative and get the partial derivative function of the membership degree; Step 65: Simplify the minimum function of the objective function according to the constraint conditions, and substitute the simplified expression into the membership partial derivative function to obtain the membership formula; Step 66: c of the minimum value function of the objective function j Take partial derivatives and get the cluster center formula; Step 67: Repeat the calculation of u ij and c j , according to the obtained u ij and c j The objective function Z is updated until the optimal solution is reached, and the image is segmented using the optimal value.
4. The finger vein image segmentation method based on the improved active contour algorithm according to claim 3 is characterized in that: The objective function expression is: in, represents the membership function value of the jth class corresponding to the i-th sample after weighting, l represents the weighted value of the sample to the cluster center, x i Indicates variable parameters, c j Represents the cluster center.
5. The finger vein image segmentation method based on the improved active contour algorithm according to claim 3 is characterized in that: The membership formula is: Among them, n represents the number of cluster centers, l represents the weighted value of the sample to the cluster center, and x i Indicates variable parameters, c j Represents the center of the cluster.
6. The finger vein image segmentation method based on the improved active contour algorithm according to claim 3 is characterized in that: The cluster center expression is: in, represents the membership function value of the jth class corresponding to the i-th sample after weighting, l represents the weighted value of the sample to the cluster center, x i Represents a variable parameter.
Citation Information
Patent Citations
A modified fuzzy c-means algorithm using fruit fly optimization for data clustering
AU2021106272A4
Finger vein image quick segmentation method based on active contour model
CN110992369A
Image segmentation method and apparatus, and storage medium and terminal device
WO2020233084A1
