Method for positioning target light source in AUV (Autonomous Underwater Vehicle) recovery based on spectral clustering algorithm

Through the target light source positioning method based on the spectral clustering algorithm, the problem of difficult light source positioning in AUV recycling is solved, precise positioning in multiple light sources and occlusion scenarios is achieved, and recycling efficiency and safety are improved.

CN118864591AInactive Publication Date: 2024-10-29HOHAI UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410793243.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing AUV recovery methods lack an efficient energy power system. Traditional recovery methods are difficult to position and are greatly affected by water flow. The recovery time is long and the operation is cumbersome. Moreover, the monocular visual positioning system has difficulty in accurate positioning in multiple light sources and occlusion scenarios, which affects recovery efficiency. and safety.

Method used

A target light source positioning method based on spectral clustering algorithm is adopted. By preprocessing and eigenvector construction of underwater light source images, the improved spectral clustering algorithm is used to classify sample points and calculate the center position of the light source. It is suitable for multiple light sources and occlusion scenes. .

Benefits of technology

It improves the accuracy and efficiency of light source positioning, reduces unnecessary detours and time waste, reduces the risk of collision and stranding, and improves the reliability and convenience of recycling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864591A_ABST
    Figure CN118864591A_ABST
Patent Text Reader

Abstract

The invention discloses a target light source positioning method in autonomous underwater vehicle (AUV) recovery based on a spectral clustering algorithm. The main purpose of the invention is to identify and position an underwater target light source and provide accurate positioning for the recovery of an underwater AUV (Autonomous Underwater Vehicle). Improved spectral clustering is used in light source identification and positioning. The method comprises the steps of preprocessing an image, obtaining sample points in the image, classifying the sample points by using an improved spectral clustering algorithm, and averaging coordinates of different types of sample points to obtain a light source center position. According to the invention, the target light source image captured in the AUV recovery process can be processed to obtain the position of the center of the target light source in the image coordinate system. According to the method, the recovery efficiency of the AUV is further improved, and compared with a traditional method, image coordinate positioning can be carried out on the light source centers of the multiple light sources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of autonomous underwater vehicle (AUV) recovery, and in particular relates to a method for locating a target light source in AUV recovery based on a spectral clustering algorithm. Background Art

[0002] As people's exploration of underwater continues to deepen, AUVs are gradually playing an important role. They are widely used in deep-water exploration, underwater rescue, submarine cable laying, intelligence reconnaissance, anti-submarine tracking and other fields.

[0003] Although AUVs have great practical value, there is currently a general lack of efficient energy and power systems, and AUVs need to be recovered in a timely manner. Traditional AUV recovery methods mainly include direct lifting recovery and net recovery. These methods are difficult to locate, are greatly affected by water flow, have a long recovery time, and are cumbersome to operate. The method of autonomously recovering AUVs using a monocular vision positioning system is relatively convenient, low-cost, and highly adaptable, and is therefore widely used.

[0004] In the process of autonomously recovering AUVs using a monocular vision positioning system, it is very important to accurately locate the target light source. First, it can provide the AUV with clear recovery guidance directions, improving the accuracy and success rate of recovery; second, it can achieve efficient recovery. The AUV can optimize the recovery path based on the precise light source positioning information, reduce unnecessary detours and time waste, and improve recovery efficiency; third, accurate positioning helps reduce recovery risks. Accurately finding the light source can reduce the probability of accidents such as collisions and groundings caused by inaccurate positioning, and ensure the safety of the AUV and related equipment; finally, it is also one of the key foundations for achieving automated recovery. Only by accurately locating the light source can we better combine other technologies and strategies to achieve automation and intelligence in the entire recovery process, and further improve the reliability and convenience of recovery. Summary of the invention

[0005] In view of the above problems, the present invention proposes a method for locating the target light source in AUV recovery based on a spectral clustering algorithm. First, the acquired underwater light source image is preprocessed to reduce experimental errors and reduce the amount of data to improve efficiency; secondly, the spectral clustering method is used to classify samples and distinguish different light sources; finally, the average sample coordinate value is used to obtain the center position of the target light source in the image coordinate system. Compared with traditional methods, the present invention can realize the image coordinate positioning of the light source center of multiple light sources, which is suitable for scenes with light source occlusion and multiple light source recognition.

[0006] The above purpose is achieved through the following technical solutions:

[0007] A method for locating a target light source in AUV recovery based on a spectral clustering algorithm. The method is based on a known quantity: the image information of an underwater light source image acquired by a camera after being converted into a grayscale image, wherein the image information is: (x, y) represents the coordinates corresponding to the pixel point of the grayscale image, and f(x, y) represents the grayscale value of the pixel point corresponding to the image coordinate (x, y); the method comprises the following steps:

[0008] Step 1: Perform image preprocessing on the image information after converting the underwater light source image obtained by the camera into a grayscale image to obtain a contour pixel point set V (v1, v2, ... v n );

[0009] Step 2: Get sample points and construct feature vectors: Based on the image contour pixel set V(v1,v2,…v n ) i As a sample point, get v i The coordinates (x i ,y i ), and use this to construct the sample point v i The eigenvector V i ;

[0010] Step 3: Based on step 2, the image contour pixel set V(v1,v2,…v n ) is classified into e categories A (a1, a2, … a e );

[0011] Step 4: Calculate the average value of the coordinates of sample points of different categories to obtain the center position of the light source.

[0012] Furthermore, the specific method of image preprocessing in step 1 is:

[0013] First, perform binary segmentation on the grayscale image:

[0014]

[0015] Wherein, P represents the grayscale threshold for binary segmentation of the grayscale image; F(x,y) represents the grayscale value of the pixel point (x,y) after binary segmentation;

[0016] Then perform image morphological processing on the binary segmented image: the gradient operation obtains the image contour pixel point set V (v1, v2, ... v n ), the gradient operation is to subtract the eroded image from the dilated image.

[0017] Furthermore, the sample point v in step 2 i is the image contour pixel set V(v1,v2,…v n) i , sample point v i The eigenvector of:

[0018] V i =(x i ,y i )

[0019] Among them, V i Represents the sample point v i The eigenvector of i ,y i ) represents the sample point v i The coordinates (x i ,y i ).

[0020] Furthermore, the sample point classification based on improved spectral clustering described in step 3 is specifically performed as follows:

[0021] Construct an n×n adjacency matrix

[0022]

[0023] Where n represents the number of sample points; W represents the n×n adjacency matrix, which is composed of w ij Composition: ij Represents any two sample points v i ,v j The weight value between ij The expression is as follows:

[0024]

[0025] Among them, exp represents the exponential function with the natural constant e as the base, that is, exp(x) = e x ;σ represents the standard deviation parameter of the Gaussian kernel function; ||V i -V j ||2 represents the sample point v i With sample point v j The Euclidean distance is expressed as follows:

[0026]

[0027] Among them, ||V i -V j ||2 represents the sample point v i With v j The Euclidean distance of x i ,y i Represent the sample points v i The horizontal and vertical coordinates of j ,y j Represent the sample points vj The horizontal and vertical coordinates of

[0028] Construct an n×n degree matrix

[0029]

[0030] Where n represents the number of sample points; D represents an n×n degree matrix, which is a diagonal matrix with values ​​only on the main diagonal; d i Indicates point v i and V(v1,v2,…v n ) is the sum of the weight values ​​between all sample points, where d i The expression is as follows:

[0031]

[0032] Construct the Laplacian matrix:

[0033] L=DW

[0034] Where L represents the Laplace matrix;

[0035] Construct k-dimensional indicator vector

[0036]

[0037] Where k represents the number of categories of sample points in spectral clustering; y i Indicates point v i The corresponding indicator vector, where y ib =1, indicating the i-th sample point v i Belongs to category c b , the rest are 0;

[0038] Construct indicator vector matrix

[0039]

[0040] Where Y represents the indicator vector matrix; k represents the number of categories of sample point classification in spectral clustering; y i Indicates v i The corresponding k-dimensional indicator vector; T represents the transpose of the matrix;

[0041] The optimization goal is the final result

[0042]

[0043] in, is the indicator vector matrix obtained by the final optimization; argmin represents tr(Y T DY(Y T DY) -1) indicates the value of the vector matrix Y when it reaches the minimum value; tr means to find the matrix Y T DY(Y T DY) -1 The trace of the matrix Y T LY(Y T DY) -1 The sum of the diagonal elements;

[0044] According to the indicator vector matrix obtained by the final optimization Get the cluster partition result C(c1,c2,…c k );

[0045] Furthermore, a similarity function is designed to measure the similarity between different clusters to eliminate the interference of external noise. The specific expression is as follows:

[0046] s gh =|r g -r h |

[0047] Among them, s gh Represents cluster c g and c h The similarity between g and r h Respectively represent c g and c h The cluster radius; r g -r h | indicates r g -r h The absolute value of cluster c b The cluster radius r b The specific calculation is as follows:

[0048] r b =max{w ij |v i ∈c b ,v j ∈c b}×0.5

[0049] Among them, max{w ij |v i ∈c b ,v j ∈c b} means taking the set {w ij |v i ∈c b ,v j ∈c b The maximum value of}; w ij Represents two points v i ,v j The weight value between

[0050] If there is s gh ≤S, then for all s gh ≤S, cluster c i and c j All clusters are retained, and the remaining clusters are not retained; if there is no s gh ≤S, keep r b The largest cluster c b ; Thus, the final clustering result A(a1,a2,…a e );

[0051] Where e is the cluster partition result A(a1,a2,…a e ); S represents the similarity threshold, and the specific expression is as follows:

[0052] S=max{r1,r2,…r k}×0.90

[0053] Among them, max{r1,r2,…r k} represents all cluster partition results C(c1,c2,…c k ) is the maximum value of the cluster radius in .

[0054] Furthermore, the specific method of step 4 is as follows:

[0055] Based on the cluster division results in step 3, calculate the coordinates of the center point of the light source

[0056]

[0057]

[0058] Among them, X q , Y q Respectively represent a q The horizontal and vertical coordinates of the center point of the category light source; x j ,y j Represent the sample points v j The corresponding horizontal and vertical coordinates.

[0059] Compared with the prior art, the present invention has the following beneficial effects:

[0060] 1. Aiming at the problem of underwater image blur, the present invention proposes an underwater image preprocessing method based on binary segmentation and gradient operation, which further improves the image quality and reduces the amount of calculation;

[0061] 2. To address the problem of inaccurate classification of image sample points, the present invention introduces an improved spectral clustering method to improve the classification accuracy of underwater image sample points;

[0062] 3. Based on the classification results of the sample points, the present invention designs a central light source positioning method based on the mean of the sample points. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 is a flow chart of the method of the present invention;

[0064] Figure 2 Results of target light source positioning using different methods. DETAILED DESCRIPTION

[0065] like Figure 1 As shown, the target light source positioning method in AUV recovery based on the spectral clustering algorithm of this embodiment is based on the known quantity:

[0066] The underwater light source image obtained by the camera is converted into image information after the grayscale image.

[0067] The image information is: (x, y) represents the coordinates corresponding to the pixel point of the grayscale image, and f(x, y) represents the grayscale value of the pixel point corresponding to the image coordinate (x, y). The method specifically includes the following steps:

[0068] Step 1: Image preprocessing:

[0069] Perform binary segmentation on the grayscale image:

[0070]

[0071] Among them, P represents the grayscale threshold for binary segmentation of the grayscale image; F(x,y) represents the grayscale value of the pixel point (x,y) after binary segmentation.

[0072] Perform image morphological processing on the binary segmented image: gradient operation (subtracting the eroded image from the dilated image) to obtain the image contour pixel set V (v1, v2, ... v n ).

[0073] Step 2: Get sample points:

[0074] The image contour pixel set V(v1,v2,…v n ) in pixel v i As a sample point, and get v i Coordinate (x i ,y i ).

[0075] Construct sample point v i The eigenvector of:

[0076] V i =(x i ,y i )

[0077] Among them, V i Represents the sample point v i The eigenvector of i ,y i ) represents the sample point v i The coordinates (x i ,y i ).

[0078] Step 3: Sample point classification based on improved spectral clustering:

[0079] Step 3: Based on step 2, V(v1,v2,…v n ) is classified into i categories A(a1, a2, …a e ).

[0080] Construct an n×n adjacency matrix

[0081]

[0082] Where W represents the n×w adjacency matrix, which is composed of w ij composition; n represents the number of sample points; w ij Denote any two points v o ,v j The weight value between ij The expression is as follows:

[0083]

[0084] Among them, w ij Denote any two points v i ,v j The weight value between them; n represents the number of sample points; exp represents the exponential function with the natural constant e as the base, that is, exp(x) = e x ;σ represents the standard deviation parameter of the Gaussian kernel function; ||V i -V j ||2 represents the sample point v i With sample point v j The Euclidean distance is expressed as follows:

[0085]

[0086] Among them, ||V i -V j ||2 means v i With v j The Euclidean distance of x i ,y i Respectively represent v i The horizontal and vertical coordinates ofj ,y j Respectively represent v j The horizontal and vertical coordinates of .

[0087] Construct an n×n degree matrix

[0088]

[0089] Where D represents an n×n degree matrix, which is a diagonal matrix with values ​​only on the main diagonal; n represents the number of sample points; d i Indicates point v i and V(v1,v2,…v n ) is the sum of the weight values ​​between all points in . i The expression is as follows:

[0090]

[0091] Among them, d i Indicates point v i and V(v1,v2,…v n ) is the sum of the weight values ​​between all points; w ij Represents two points v i ,v j The weight value between ; n represents the number of sample points.

[0092] Constructing the Laplacian Matrix

[0093] L=DW

[0094] Among them, L represents the Laplace matrix; D represents the n×n degree matrix; W represents the n×n adjacency matrix.

[0095] Construct k-dimensional indicator vector

[0096]

[0097] Where k represents the number of categories of sample points in spectral clustering; y i Indicates point v i The corresponding indicator vector, where y ij =1, indicating the i-th sample point v i Belongs to the mth category c m , and the rest are 0.

[0098] Construct indicator vector matrix

[0099]

[0100] Where Y represents the indicator vector matrix; y i Indicates v iThe corresponding k-dimensional indicator vector; n represents the number of sample points; k represents the number of categories of sample point classification in spectral clustering; T represents the transpose of the matrix.

[0101] The optimization goal is the final result

[0102]

[0103] in, is the indicator vector matrix obtained by the final optimization; argmin represents tr(Y T LY(Y T DY) -1 ) indicates the value of the vector matrix Y when it reaches the minimum value; tr means to find the matrix Y T LY(Y T DY) -1 The trace of the matrix Y T LY(Y T DY) -1 The sum of the diagonal elements; Y represents the indicator vector matrix; L represents the Laplace matrix; D represents the n×n degree matrix.

[0104] According to the indicator vector matrix obtained by the final optimization Get the cluster partition result C(c1,c2,…c k ).

[0105] Considering the interference of external noise, the number of clustering result categories may be greater than the number of target light sources, which greatly reduces the accuracy of light source identification and increases unnecessary calculations. Based on the traditional spectral clustering algorithm, the present invention designs a similarity function to measure the similarity between different clusters, which is specifically expressed as follows:

[0106] s gh =|r g -r h |

[0107] Among them, s gh Represents cluster c g and c h The similarity between g and r h Respectively represent c g and c h The cluster radius; r g -r h | indicates r g -r h The absolute value of cluster c b The cluster radius r b The specific calculation is as follows:

[0108] r b =max{w ij|v i ∈c b ,v j ∈c b}×0.5

[0109] Among them, r b Indicates category c b The cluster radius of max{w ij |v i ∈c b ,v j ∈c b} means taking the set {w ij |v i ∈c b ,v j ∈c b The maximum value of}; w ij Represents two points v i ,v j The weight value between .

[0110] If there is s gh ≤s, then for all s gh ≤S, cluster c i and c j All clusters are retained, and the remaining clusters are not retained; if there is no s gh ≤S, keep r b The largest cluster c b ; Thus, the final clustering result A(a1,a2,…a e ). The value of e is the cluster partition result A(a1,a2,…a e ); S represents the similarity threshold, and the specific expression is as follows:

[0111] S=max{r1,r2,…r k}×0.90

[0112] Where S represents the similarity threshold, max{r1,r2,…r k} represents all cluster partition results C(c1,c2,…c k ) is the maximum value of the cluster radius in .

[0113] Step 4: Calculate the average coordinates of sample points of different types to get the center position of the light source:

[0114] Based on the cluster division results in step 3, calculate the coordinates of the center point of the light source

[0115]

[0116]

[0117] Among them, X q , Yq Respectively represent a q The horizontal and vertical coordinates of the center point of the category light source; x j ,y j Represent the sample points v j The corresponding horizontal and vertical coordinates.

[0118] Simulation verification:

[0119] In order to verify the effectiveness of the method of the present invention, a simulation experiment was designed. The simulation set the real position of the underwater target light source to (5cm, 8cm); an image with the target light source information was obtained through an underwater camera; the coordinate relationship between the image and the real position was calibrated in advance. Based on the above, the traditional spectral clustering method and the method of the present invention were used to locate the target light source. The results are as follows: Figure 2 Target light source positioning results of different methods; Table 1 shows the target light source positioning error results.

[0120] Table 1 Target light source positioning error results

[0121] method X-direction positioning error (cm) Positioning error in Y direction (cm) Traditional spectral clustering algorithm 0.39 0.31 Method of the present invention 0.23 0.25

[0122] from Figure 2 It can be seen that the identification and positioning result of the method of the present invention is closer to the actual position of the target light source, while the traditional spectral clustering method is relatively far from the actual position of the target light source. At the same time, Table 1 also gives the specific positioning error results. It can be seen that compared with the traditional spectral clustering method, the positioning error of the method of the present invention in the X direction and the Y direction is smaller. Therefore, the method of the present invention has certain advantages.

Claims

1. A method for locating a target light source in AUV recovery based on a spectral clustering algorithm. The method is based on known quantities: the image information of the underwater light source image obtained by the camera converted into a grayscale image, where: The image information is: (x, y) represents the coordinates corresponding to the pixel point of the grayscale image, and f(x, y) represents the grayscale value of the pixel point corresponding to the image coordinate (x, y); the method is characterized in that it includes the following steps: Step 1: Perform image preprocessing on the image information after converting the underwater light source image obtained by the camera into a grayscale image to obtain a contour pixel point set V (v1, v2, ...v n ); Step 2: Obtain sample points and construct feature vectors: Based on the image contour pixel set V (v1, v2, ...v n ) i As a sample point, get v i The coordinates (x i ,y i ), and use this to construct the sample point v i The eigenvector V i ; Step 3: Based on step 2, the image contour pixel set V (v1, v2, ...v n ) is divided into e categories A (a1, a2, ...a e ); Step 4: Calculate the average value of the coordinates of sample points of different categories to obtain the center position of the light source.

2. The method for locating a target light source in AUV recovery based on a spectral clustering algorithm according to claim 1, characterized in that: The specific method of image preprocessing in step 1 is: First, perform binary segmentation on the grayscale image: Wherein, P represents the grayscale threshold for binary segmentation of the grayscale image; F(x, y) represents the grayscale value of the pixel point (x, y) after binary segmentation; Then perform image morphological processing on the binary segmented image: gradient operation obtains the image contour pixel point set V (v1, v2, ...v n ), the gradient operation is to subtract the eroded image from the dilated image.

3. The method for locating a target light source in AUV recovery based on a spectral clustering algorithm according to claim 1, characterized in that: The sample point v in step 2 i is the image contour pixel set V(v1, v2, ...v n ) i , sample point v i The eigenvector of: V i (x) i ,and i ) Among them, V i Represents the sample point v i The eigenvector of i ,y i ) represents the sample point v i The coordinates (x i ,y i ).

4. The method for locating a target light source in AUV recovery based on a spectral clustering algorithm according to claim 1, characterized in that: The specific method of sample point classification based on improved spectral clustering described in step 3 is as follows: Construct an n×n adjacency matrix Where n represents the number of sample points; W represents the n×n adjacency matrix, which is composed of w ij Composition: ij Represents any two sample points v i , v j The weight value between ij The expression is as follows: Among them, exp represents the exponential function with the natural constant e as the base, that is, exp(x) = e x ;σ represents the standard deviation parameter of the Gaussian kernel function; ||V i -V j ||2 represents the sample point v i With sample point v j The Euclidean distance is expressed as follows: Among them, ||V i -V j ||2 represents the sample point v i With v j The Euclidean distance of x i ,y i Represent the sample points v i The horizontal and vertical coordinates of j ,y j Represent the sample points v j The horizontal and vertical coordinates of Construct an n×n degree matrix Where n represents the number of sample points; D represents an n×n degree matrix, which is a diagonal matrix with values ​​only on the main diagonal; d i Indicates point v i With V(v1, v2, ...v n ) is the sum of the weight values ​​between all sample points, where d i The expression is as follows: Construct the Laplacian matrix: L=D—W Where L represents the Laplace matrix; Construct k-dimensional indicator vector Where k represents the number of categories of sample points in spectral clustering; y i Indicates point v i The corresponding indicator vector, where y ib =1, indicating the i-th sample point v i Belongs to category c b , the rest are 0; Construct indicator vector matrix Where Y represents the indicator vector matrix; k represents the number of categories of sample point classification in spectral clustering; y i Indicates v i The corresponding k-dimensional indicator vector; T represents the transpose of the matrix; The optimization goal is the final result in, is the indicator vector matrix obtained by the final optimization; arg min represents tr(Y T LY(Y T DY) -1 ) indicates the value of the vector matrix Y when it reaches the minimum value; tr means to find the matrix Y T LY(Y T DY)- 1 The trace of the matrix Y T LY(Y T DY)- 1 The sum of the diagonal elements; According to the indicator vector matrix obtained by the final optimization Get the cluster partition result C(c1, c2, ...c k ); Furthermore, a similarity function is designed to measure the similarity between different clusters to eliminate the interference of external noise. The specific expression is as follows: s gh =|r g -r h | Among them, s gh represents the similarity between clusters cg and ch; r g and r h Respectively represent c g and c h The cluster radius; r g -r h | indicates r g -r h The absolute value of cluster c b The cluster radius r b The specific calculation is as follows: r b =max{w ij |v i ∈c b ,V j ∈c b }×0.5 Among them, max{w ij |v i ∈c b , V j ∈c b } means taking the set {w ij |v i ∈c b , V j ∈c b The maximum value of}; w ij Represents two points v i , v j The weight value between ; If there is s gh ≤S, then for all s gh ≤S, cluster c i and c j All clusters are retained, and the remaining clusters are not retained; if there is no s gh ≤S, keep r b The largest cluster c b ; Thus, the final cluster division result A (a1, a2, ...a e ); Where e is the cluster partition result A (a1, a2, ...a e ); S represents the similarity threshold, and the specific expression is as follows: S=max{r1,r2,...r k }×0.90 Among them, max{r1, r2, ...r k } represents all cluster partition results C (c1, c2, ...c k ) is the maximum value of the cluster radius in .

5. The method for locating a target light source in AUV recovery based on a spectral clustering algorithm according to claim 4, characterized in that: The specific method of step 4 is as follows: Based on the cluster division results in step 3, calculate the coordinates of the center point of the light source Among them, X q , Y q Respectively represent a q The horizontal and vertical coordinates of the center point of the category light source; x j ,y j Represent the sample points v j The corresponding horizontal and vertical coordinates.

Citation Information

Patent Citations

  • Superpixel matting method based on Nystrom spectral clustering

    CN113298821A

  • Underwater sonar image target segmentation method based on self-adjusting spectral clustering and entropy weight method

    CN115049828A

  • Image copy and paste tampering detection method and system based on variable cluster spectral clustering

    CN116645534A

  • Binocular vision-based autonomous underwater vehicle recycling guidance false light source removal method

    WO2022205525A1