Method and device suitable for underwater posture clustering

By combining deep neural networks and Gaussian mixture distributions, the contrast and blur problems of underwater gesture recognition are solved, enabling accurate clustering and classification of underwater posture images and adapting to changes in the underwater operating environment.

CN118898734AActive Publication Date: 2024-11-05SENINT(SUZHOU) TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411399529.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2024-11-05
Estimated Expiration
2044-10-09

AI Technical Summary

Technical Problem

Underwater gesture recognition in computer vision suffers from problems such as low contrast, blurriness, and color distortion. Existing gesture recognition models lack scalability and maintainability, making it difficult to adapt to the development needs of the underwater operation field.

Method used

Deep neural networks are used for image embedding and target point alignment. L2 normalization and Gaussian mixture distribution are combined for unsupervised clustering. The AlexNet network structure is used for image classification. Direct clustering assignment of pose images is achieved through end-to-end training.

Benefits of technology

Accurate attitude image classification was achieved in unstable underwater environments, adapting to different shooting conditions and improving the scalability and maintainability of underwater gesture recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898734A_ABST
    Figure CN118898734A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device suitable for underwater gesture clustering, and relates to the technical field of underwater gesture recognition, and the method comprises the steps: S1, learning useful image representation through training a deep network, and enabling target points to be uniformly dispersed in a d-dimensional space; s2, carrying out normalization operation on the converted vector; if the vectors are uniformly distributed, projecting the vectors to a spherical surface by using Gaussian mixture distribution; and S3, while optimizing the clustering target, learning image representation by the convolutional neural network model, and classifying the images. According to the method and device suitable for underwater posture clustering, an unsupervised clustering method is provided, a deep neural network is constructed in an end-to-end mode, and direct clustering distribution of posture images is provided without additional processing; multi-modal deep clustering is adopted, a deep network is trained to align image embedding with target points sampled from Gaussian mixture model distribution, and clustering distribution is determined through association of mixed components of image embedding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of underwater gesture recognition, and in particular to a method and a device suitable for underwater gesture clustering. Background Art

[0002] In many underwater missions, autonomous underwater vehicles (AUVs) are accompanied by human divers who, unable to speak, communicate non-verbally through different gestures. However, underwater gesture recognition is a relatively underdeveloped field in computer vision due to the lack of annotated datasets. There are two main challenges: First, underwater images suffer from low contrast, blur, color distortion, and blur; therefore, traditional gesture recognition methods face problems in analyzing them. Second, existing gesture recognition models are mainly supervised and can only recognize gestures from a predefined set used to train the model. It is obviously impossible to enumerate all gestures and collect thousands of labeled images for every possible gesture that a human diver may use in the wild.

[0003] In addition, there are also certain problems with the scalability and maintainability of underwater gesture recognition algorithms. With the continuous development of underwater operations and the increasing application needs, gesture recognition algorithms need to be continuously updated and upgraded. However, the current underwater gesture recognition algorithms still have certain deficiencies in scalability and maintainability, and it is difficult to meet the needs of future applications.

[0004] Therefore, it is urgent to improve this shortcoming. The present invention studies and improves the existing technology and its shortcomings, and provides a method and device suitable for underwater posture clustering. Summary of the invention

[0005] The purpose of the present invention is to provide a method and device suitable for underwater posture clustering to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions: In a first aspect, a method for underwater posture clustering is provided, comprising the following steps: S1. Learn useful image representations by training a deep network to align its image embeddings with a fixed set of target points, so that the target points are evenly distributed in d-dimensional space; Assumptions is a set of images, is the mapping operation performed by the deep neural network, The outputs of are all normalized using the L2 normalization method (L2 normalization is a common data preprocessing technique, which is mainly used to scale each feature of the data to the same scale to improve the training efficiency and performance of the model); Z is a d-dimensional vector; The so-called target point refers to the mapping of a vector, from the embedding of the image, uniformly mapped to the representation of another vector space; assuming is the mapped vector, each image , needs to be mapped to a (y is the label, y∈ , the value of y is 1-K, image classification), the formula of the optimization objective is expressed as: ——Formula 1; in, , represents the Euclidean distance; The optimization problem is solved in a stochastic manner by iteratively on randomly sampled mini-batches; the specific operation is: given a mini-batch of images (b stands for batch), and then calculate , then Formula 1 uses the Hungarian algorithm to calculate the P is optimized, and the optimization goal is to minimize the Euclidean distance between the source image embedding and the target conversion vector; the specific implementation is: the training of the parameters of the calculation neural network; through the training parameters, the image embedding can be passed to complete the mapping of the target vector; subsequently, the grouping and clustering operations are performed on the mapped target vector space; S2, the converted vectors are all normalized; if they are evenly distributed, they are not suitable for unsupervised clustering, and the boundaries between clusters will be blurred. Multimodal distribution needs to be introduced because it will produce separation in the target space; in this case, a mixed Gaussian distribution (GMM) is used to project the normalized vectors onto the sphere: ; ; The probability density function of the Gaussian distribution is expressed as the weighted average of K Gaussian distributions, where d is the dimension of the embedded vector space. is the weight, It is a normal distribution, or Gaussian distribution , where the expectation is , the covariance matrix is ; and assume that each Gaussian distribution is similar , ,formula , indicating L2 normalization; picture Cluster assignment of Use the following formula: ; Argmin is a commonly used formula in machine learning, the official definition is: ; S3. While optimizing the clustering target, the convolutional neural network model learns image representation and classifies images. AlexNet is used as the basic network of the convolutional neural network, and the loss function is defined as: ——Formula 2; in, is a flip transformation, which transforms the image labeled y Perform several specified flip operations, y is the label, are the parameters of the network, is the result of flipping the image with the predicted label y (the result predicted by the neural network is a probability distribution); The convolutional neural network adopts the AlexNet network structure by default: Relu is used as the activation function; a 3×3 maximum pooling operation is added between the 2nd and 3rd convolutional layers; The difference from the original AlexNet is that the original AlexNet structure was divided into two parts due to insufficient computing power, and this case merged them into one part; The fully connected network after the convolutional neural network adopts a 3-layer structure by default, with 4096 neurons in each layer, and the activation function adopts relu, which can be adjusted according to specific circumstances.

[0007] Furthermore, in step S1, the L2 normalization method scales each feature vector in the data set so that the L2 norm of the scaled feature vector is equal to a predefined value, usually 1. The L2 norm is the Euclidean distance or the modulus of the vector.

[0008] Furthermore, the detailed process of step S2 is described as follows: The main parameters can be adjusted as needed: Input Image , Represents two convolutional neural networks, k represents the number of classifications required, iters represents the number of iterations, and epoch represents the number of training rounds. represents the variance of the distribution, d represents the dimension of the embedding vector, λ represents the learning rate and is a parameter, g represents the random image flipping operation, and r represents the number of image flipping instances in a batch; The loss function Loss is shown in formula 2; For each epoch, that is, each round of training: Iterate i=1 to iters times: Get a small batch of initially classified data from the data; calculate ; Update P by minimizing formula 1; Flip transformation for images , and then calculate the loss Loss through formula 1, and update the network parameter gradient according to the loss Loss; According to the λ learning rate, update the parameters of the neural network ; Iterate i=1 to iters times: Get a small batch from the data ; Flip {0°, 90°, 180°, 270°}; Input the flipped image into the neural network, and the loss function is Loss; Update the neural network parameters θ according to the λ learning rate; The above two parts are mainly for training formula 1 and neural network.

[0009] Furthermore, the AlexNet network structure specifically includes: input layer, convolution layer 1, convolution layer 2, convolution layer 3, convolution layer 4, convolution layer 5, and the height, width, and number of channels of each layer are represented by It represents, in order: input layer (224×224×3), convolution layer 1 (55×55×96), convolution layer 2 (27×27×256), convolution layer 3 (13×13×384), convolution layer 4 (13×13×384), convolution layer 5 (13×13×256).

[0010] In a second aspect, a device suitable for underwater posture clustering is provided, which is applied to the method suitable for underwater posture clustering as described above. The device includes: a memory, a processor, and computer program instructions stored on the memory and executable on the processor. When the processor executes the computer program instructions, the method suitable for underwater posture clustering as described above is implemented.

[0011] In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method applicable to underwater posture clustering as described above is used.

[0012] The present invention provides a method and device suitable for underwater posture clustering, which has the following beneficial effects: The present invention proposes an unsupervised clustering method, which constructs a deep neural network in an end-to-end manner to provide direct clustering assignment of posture images without additional processing; multimodal deep clustering is adopted to train the deep network to align image embeddings with target points sampled from the Gaussian mixture model distribution, and the clustering assignment is determined by associating the mixed components of the image embeddings; at the same time, the deep network is trained to solve the prediction of image rotation, promote better clustering, and is suitable for unstable underwater shooting environments.

[0013] The present invention can accurately classify unknown images by learning the features of known spaces, and can achieve the goal of correctly classifying unknown samples by learning a portion of known gesture samples. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A logical flow diagram of a method for underwater posture clustering according to the present invention; Figure 2 A schematic diagram of a convolutional neural network suitable for underwater posture clustering method according to the present invention. DETAILED DESCRIPTION

[0015] The following embodiments of the present invention are described in further detail in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0016] like Figure 1-Figure 2 As shown, a method suitable for underwater posture clustering includes the following steps: S1. Learn useful image representations by training a deep network to align its image embeddings with a fixed set of target points, so that the target points are evenly distributed in d-dimensional space; Assumptions is a set of images, is the mapping operation performed by the deep neural network, The outputs of are all normalized using the L2 normalization method (L2 normalization is a common data preprocessing technique, which is mainly used to scale each feature of the data to the same scale to improve the training efficiency and performance of the model); The L2 normalization method scales each feature vector in the data set so that the L2 norm of the scaled feature vector is equal to a predefined value, usually 1. The L2 norm is the Euclidean distance or the modulus of the vector. Z is a d-dimensional vector; The so-called target point refers to the mapping of a vector, from the embedding of the image, uniformly mapped to the representation of another vector space; assuming is the mapped vector, each image , needs to be mapped to a (y is the label, y∈ , the value of y is 1-K, image classification), the formula of the optimization objective is expressed as: ——Formula 1; in, , represents the Euclidean distance; The optimization problem is solved in a stochastic manner by iteratively on randomly sampled mini-batches; the specific operation is: given a mini-batch of images (b stands for batch), and then calculate , then formula 1 is used through the Hungarian method (see https: / / blog.csdn.net / u013384984 / article / details / 90718287 for details) in this small batch P is optimized, and the optimization goal is to minimize the Euclidean distance between the source image embedding and the target conversion vector; the specific implementation is: the training of the parameters of the calculation neural network; through the training parameters, the image embedding can be passed to complete the mapping of the target vector; subsequently, the grouping and clustering operations are performed on the mapped target vector space; S2, the converted vectors are all normalized; if they are evenly distributed, they are not suitable for unsupervised clustering, and the boundaries between clusters will be blurred. Multimodal distribution needs to be introduced because it will produce separation in the target space; in this case, a mixed Gaussian distribution (GMM) is used to project the normalized vectors onto the sphere: ; ; The probability density function of the Gaussian distribution is expressed as the weighted average of K Gaussian distributions, where d is the dimension of the embedded vector space. is the weight, It is a normal distribution, or Gaussian distribution , where the expectation is , the covariance matrix is ; Here we assume that each Gaussian distribution is similar , ,formula , indicating L2 normalization; (for a general introduction to GMM, refer to https: / / blog.csdn.net / qq_52466006 / article / details / 127186276, this case only uses this method); picture Cluster assignment of Use the following formula: ; Argmin is a commonly used formula in machine learning, the official definition is: ; The detailed process of this case is described as follows: The main parameters can be adjusted as needed: Input Image , Represents two convolutional neural networks, k represents the number of classifications required, iters represents the number of iterations, and epoch represents the number of training rounds. represents the variance of the distribution, d represents the dimension of the embedding vector, λ represents the learning rate and is a parameter, g represents the random image flipping operation, and r represents the number of image flipping instances in a batch; The loss function Loss is shown in formula 2; For each epoch, that is, each round of training: Iterate i=1 to iters times: Get a small batch of initially classified data from the data; calculate ; Update P by minimizing formula 1; Flip transformation for images , and then calculate the loss Loss through formula 1, and update the network parameter gradient according to the loss Loss; According to the λ learning rate, update the parameters of the neural network ; Iterate i=1 to iters times: Get a small batch from the data ; Flip {0°, 90°, 180°, 270°}; Input the flipped image into the neural network, and the loss function is Loss; According to the λ learning rate, update the parameters of the neural network ; The above two parts are mainly for training formula 1 and neural network; Data augmentation is a common technique to improve the performance of machine learning algorithms. Random image transformations such as cropping, flipping, rotation, scaling, and photometric transformations are applied to images in order to expand the dataset with new and unique images. In the unsupervised clustering task in this case, these random transformations provide several instances of the same image that look different but have the same semantics since they contain the same objects; Let g represent a random image transformation operation. When training a convolutional neural network, when fitting the original image and the transformed image, it is necessary to find the implicit common semantics between them; the semantics is likely to appear in other images in the dataset belonging to the same class, which prompts the network to map images containing the same object to closer positions to each other with a beneficial effect similar to self-supervision; S3. While optimizing the clustering target, the convolutional neural network model learns image representation and classifies images. The success of unsupervised clustering is highly related to the quality of the learned representation. Combining supervised methods can significantly improve the quality of representation obtained in unsupervised learning scenarios. In this case, AlexNet is used as the basic network of the convolutional neural network, and the loss function is defined as: ——Formula 2; in, is a flip transformation, which transforms the image labeled y Perform several specified flip operations, y is the label, are the parameters of the network, is the result of flipping the image with the predicted label y (the result predicted by the neural network is a probability distribution); The "convolutional neural network" in the flowchart of this case uses the AlexNet network structure by default: See Figure 2 , under the number of layers Represents height, width, and number of channels. Relu is used as the activation function. A 3×3 maximum pooling operation is added between the 2nd and 3rd convolutional layers. The AlexNet network structure specifically includes: input layer, convolution layer 1, convolution layer 2, convolution layer 3, convolution layer 4, convolution layer 5, and the height, width, and number of channels of each layer are represented by It means, in order: input layer (224×224×3), convolution layer 1 (55×55×96), convolution layer 2 (27×27×256), convolution layer 3 (13×13×384), convolution layer 4 (13×13×384), convolution layer 5 (13×13×256); The difference from the original AlexNet is that the original AlexNet structure was divided into two parts due to insufficient computing power, and this case merged them into one part; The "fully connected network" after the "convolutional neural network" in the flowchart of this case adopts a 3-layer structure by default, with 4096 neurons in each layer, and the activation function uses relu, which can be adjusted according to specific circumstances.

[0017] A device suitable for underwater posture clustering is applied to the method suitable for underwater posture clustering as mentioned above. The device includes: a memory, a processor, and computer program instructions stored in the memory and executable on the processor. When the processor executes the computer program instructions, the method suitable for underwater posture clustering as mentioned above is implemented.

[0018] A computer-readable storage medium stores computer-executable instructions, which are used to implement the above-mentioned method for underwater posture clustering when executed by a processor.

[0019] The embodiments of the present invention are given for the purpose of illustration and description, and are not intended to be exhaustive or to limit the invention to the disclosed forms. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for specific uses.

Claims

1. A method suitable for underwater posture clustering, characterized in that: The following steps are involved: S1. Learn useful image representations by training a deep network to align its image embeddings with a fixed set of target points, so that the target points are evenly distributed in d-dimensional space; Assumptions is a set of images, is the mapping operation performed by the deep neural network, The outputs are all normalized using the L2 normalization method; Z is a d-dimensional vector; The so-called target point refers to the mapping of a vector, from the embedding of the image, uniformly mapped to the representation of another vector space; assuming is the mapped vector, each image , needs to be mapped to a , the optimization objective formula is expressed as: ——Formula 1; in, , represents the Euclidean distance; The optimization problem is solved in a stochastic manner by iteratively on randomly sampled mini-batches; the specific operation is: given a mini-batch of images , then calculate , then Formula 1 uses the Hungarian algorithm to calculate the P is optimized, and the optimization goal is to minimize the Euclidean distance between the source image embedding and the target conversion vector; the specific implementation is: the training of the parameters of the calculation neural network; through the training parameters, the image embedding can be passed to complete the mapping of the target vector; S2. The converted vectors are all normalized. If they are evenly distributed, they are not suitable for unsupervised clustering, and the boundaries between clusters will be blurred. Multimodal distribution needs to be introduced, and mixed Gaussian distribution is used to project the normalized vectors onto the sphere: ; ; The probability density function of the Gaussian distribution is expressed as the weighted average of K Gaussian distributions, where d is the dimension of the embedded vector space. is the weight, It is a normal distribution, or Gaussian distribution , where the expectation is , the covariance matrix is ; and assume that each Gaussian distribution is similar , ,formula , indicating L2 normalization; picture Cluster assignment of Use the following formula: ; Argmin is a commonly used formula in machine learning, the official definition is: ; S3. While optimizing the clustering target, the convolutional neural network model learns image representation and classifies images. AlexNet is used as the basic network of the convolutional neural network, and the loss function is defined as: ——Formula 2; in, is a flip transformation, which transforms the image labeled y Perform several specified flip operations, y is the label, are the parameters of the network, It is the result of flipping the image of the predicted label y; The convolutional neural network adopts the AlexNet network structure by default: Relu is used as the activation function; a 3×3 maximum pooling operation is added between the 2nd and 3rd convolutional layers; The fully connected network after the convolutional neural network adopts a 3-layer structure by default, with 4096 neurons in each layer and relu as the activation function.

2. A method for underwater posture clustering according to claim 1, characterized in that: In step S1, the L2 normalization method scales each feature vector in the data set so that the L2 norm of the scaled feature vector is equal to a predefined value. The L2 norm is the Euclidean distance or the modulus of the vector.

3. A method for underwater posture clustering according to claim 1, characterized in that: The detailed process of step S2 is described as follows: The main parameters can be adjusted as needed: Input Image , Represents two convolutional neural networks, k represents the number of classifications required, iters represents the number of iterations, and epoch represents the number of training rounds. represents the variance of the distribution, d represents the dimension of the embedding vector, λ represents the learning rate and is a parameter, g represents the random image flipping operation, and r represents the number of image flipping instances in a batch; Loss function Loss see formula 2 For each epoch, that is, each round of training: Iterate i=1 to iters times: Get a small batch of initially classified data from the data; calculate ; Update P by minimizing formula 1; Flip transformation for images , and then calculate the loss Loss through formula 1, and update the network parameter gradient according to the loss Loss; According to the λ learning rate, update the parameters of the neural network ; Iterate i=1 to iters times: Get a small batch from the data ; Flip {0°, 90°, 180°, 270°}; Input the flipped image into the neural network, and the loss function is Loss; Update the neural network parameters θ according to the λ learning rate; The above two parts are mainly for training formula 1 and neural network.

4. A method for underwater posture clustering according to claim 1, characterized in that: The AlexNet network structure specifically includes: input layer, convolution layer 1, convolution layer 2, convolution layer 3, convolution layer 4, convolution layer 5, and the height, width, and number of channels of each layer are represented by It represents, in order: input layer (224×224×3), convolution layer 1 (55×55×96), convolution layer 2 (27×27×256), convolution layer 3 (13×13×384), convolution layer 4 (13×13×384), convolution layer 5 (13×13×256).

5. A device for underwater posture clustering, applied to the method for underwater posture clustering as claimed in any one of claims 1 to 4, characterized in that: The device comprises: a memory, a processor, and computer program instructions stored in the memory and executable on the processor, wherein when the processor executes the computer program instructions, the method for underwater posture clustering as described in any one of claims 1 to 4 is implemented.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method for underwater posture clustering as described in any one of claims 1 to 4 above.

Citation Information

Patent Citations

  • Modal incomplete alignment-oriented data feature learning method

    CN113033438A

  • Social relation analysis method and system based on multi-modal data and storage medium

    CN115293920A

  • Monocular unsupervised depth estimation method based on contextual attention mechanism

    US20210390723A1