A massage technique recognition method based on deep learning

Through flexible lattice tactile sensors and deep learning technology, combined with variational autoencoders and convolutional neural networks, the spatial and temporal domain features of massage techniques are extracted, which solves the problem of traditional technique recognition methods being unable to collect force information and achieves efficient , low-cost massage technique recognition.

CN114170671BActive Publication Date: 2024-10-29SHANGHAI UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111086878.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-16
Publication Date
2024-10-29
Estimated Expiration
2041-09-16

AI Technical Summary

Technical Problem

Existing technology cannot effectively collect and identify force information of massage techniques. Traditional technique recognition methods rely on visual sensors and two-dimensional convolutional neural networks, cannot extract time series information, and are costly.

Method used

Flexible lattice tactile sensors are used to collect data, combined with variational autoencoders, frame difference methods, two-dimensional convolutional neural networks and recurrent neural networks, and a frame attention mechanism is introduced to extract the spatial and temporal domain features of massage techniques. Neural networks are trained to recognize sleight of hand.

Benefits of technology

It achieves effective extraction and identification of massage technique features without increasing data collection costs, improves recognition accuracy and generalization capabilities, and reduces network training time and data acquisition costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114170671B_ABST
    Figure CN114170671B_ABST
Patent Text Reader

Abstract

The present invention discloses a massage technique recognition method based on deep learning. The force distribution and force size information of the hand during massage are collected through a flexible tactile sensor, and a neural network is used to extract the technique features to realize the recognition of massage techniques; a variational autoencoder is used to realize data enhancement; a frame difference method is used to extract the key frames of the input data and remove the redundant frames of the input; a two-dimensional convolutional neural network and a recurrent neural network are used to extract and train the spatial domain and time domain features of the massage dot matrix heat map group; a frame attention mechanism is introduced after the convolutional neural network to improve the network's recognition accuracy for massage techniques. The present invention expands the original sensor data without increasing the cost of collecting data; extracts the key frames of the image group data, reduces the network overfitting phenomenon, and increases the network generalization ability; the neural network extracts the time domain information between video frames to obtain the time domain features of the massage technique; and the recognition accuracy is effectively improved by introducing the frame attention mechanism.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence, and in particular relates to a massage technique recognition method based on deep learning. Background Art

[0002] Massage is a method of using techniques to act on specific parts of the human body to regulate the physiological and pathological conditions of the body and achieve the purpose of physical therapy. Traditional manual massage requires a lot of physical strength from the masseur and requires a lot of training costs.

[0003] With the development of robot technology, robots can replace humans in massage services. In order to realize robot massage, we first need to systematically understand the massage techniques of professional masseurs, explore the characteristics of massage techniques, and provide a reference for robots to reproduce the massage techniques of masseurs.

[0004] At present, most of the manipulation recognition at home and abroad uses visual sensors to collect manipulation images, label them, and use two-dimensional convolutional neural networks to train single-frame manipulation image data to achieve the effect of identifying manipulation categories. However, visual sensors can only collect the action information of the manipulation, but not the force information of the massage manipulation; two-dimensional convolutional neural networks can only be trained to extract the spatial domain information of the massage manipulation, but not the time series information closely related to the massage manipulation; in addition, traditional sensor data collection also requires a lot of cost. Therefore, a more effective new massage manipulation recognition method is needed. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a method for identifying the doctor's massage technique, which collects data and labels it through a flexible dot matrix tactile sensor integrated on a glove, and processes and trains the data through a neural network to achieve the purpose of massage technique identification.

[0006] In order to achieve the above invention purpose, the concept of the present invention is:

[0007] A massage technique recognition method based on deep learning is proposed. A model that can generate target data from latent variables is constructed through variational auto-encoder (VAE), and additional target data is obtained by interpolating latent variables without increasing artificially collected data. The key frames of the collected massage technique images are extracted by frame difference method. The spatial and temporal domain features of the massage force dot matrix are extracted by combining two-dimensional convolutional neural networks (2DCNN) with recurrent neural networks (RNN). The frame attention mechanism is introduced to add weights to the massage force dot matrix and the weights are trained through neural networks to optimize the model performance.

[0008] According to the above inventive concept, the present invention adopts the following technical solutions:

[0009] A massage technique recognition method based on deep learning, the operation steps are as follows:

[0010] Step 1: Collecting data corresponding to massage actions through flexible distributed tactile sensors;

[0011] Step 2: Visualize the sensor data into a massage dot matrix heat map through the host computer;

[0012] Step 3: Use variational autoencoder VAE to build a model that generates target data from latent variables to expand the original collected data;

[0013] Step 4: Extract the key frames of the massage dot matrix heat map by frame difference method;

[0014] Step 5: Use a two-dimensional convolutional neural network to extract the spatial features of the input massage force dot matrix of each frame;

[0015] Step 6: Introduce the frame attention mechanism after the convolutional neural network to assign weight values ​​to the video frame dimensions of the data;

[0016] Step 7: Use a recurrent neural network to extract the time domain features of each frame of the massage force dot matrix;

[0017] Step 8: Connect the output of the recurrent neural network to the linear layer to reduce the dimensionality of the data, train the network, and realize the recognition of massage techniques.

[0018] Preferably, the massage technique recognition method based on deep learning of the present invention is divided into three modules: data acquisition module, data processing module and deep learning module.

[0019] Preferably, in step one, a data acquisition module is used to collect the magnitude and distribution of the force applied by the doctor's hands during massage through a tactile sensor and a data acquisition system to achieve massage data collection.

[0020] Preferably, in step 2, a data processing module is used to receive sensor data in real time through a host computer and visualize the data as a massage dot matrix thermal map for storage, thereby achieving data visualization.

[0021] Further preferably, in step 2, the massage data corresponding to the collected massage action is visualized, and each sensing unit of the tactile sensor is visualized in the host computer according to its actual distribution position on the glove through Matlab, and the magnitude of the force on the sensing unit is represented by a heat map, and the color of the sensing unit changes from cold to warm corresponding to the force on the sensing unit from small to large.

[0022] Preferably, in step three, the data processing module is used to indirectly obtain the distribution of real sample data by introducing latent variables through the variational autoencoder VAE, and the latent variables are interpolated and decoded into generated samples, and the massage dot matrix heat map is expanded without additional data collection to achieve data enhancement. The present invention constructs a model for generating target data from latent variables through a variational autoencoder (VAE), and the latent variables correspond to the target data one by one. The original collected data is expanded by interpolating the latent variables and decoding them into generated samples to reduce the large cost of acquiring new data; data enhancement is achieved.

[0023] Preferably, in step four, the data processing module is used to extract key frames in the massage force dot matrix image group through the frame difference method, N key frames are extracted, and they are arranged in chronological order as input of the neural network; the key frame extraction of the image group is realized.

[0024] Further preferably, in step four, the frame difference method averages the pixels of every 10 frames of the 120-frame dot matrix heat map corresponding to a massage technique, and compares the mean image with the 10 frames to select a frame with the largest pixel difference with the mean image, and retains this image with the largest difference and the mean image, and finally obtains 20 frames of key frames, and arranges the key frames in chronological order as the input of the neural network to realize data key frame extraction.

[0025] Preferably, in step five, the spatial domain features of the massage techniques are extracted through a two-dimensional convolutional neural network.

[0026] Further preferably, in step five, a deep learning module is used to adopt a two-dimensional convolutional neural network to extract the spatial features of each frame of the input massage force dot matrix, and the original input data dimension of the neural network is: (batch size, frames, channels, image size x, image size y). After the two-dimensional convolutional neural network extracts the spatial features, the data dimension becomes: (batch size, frames, CNN embed dim); the extraction of spatial domain features of massage techniques is realized.

[0027] Preferably, in step six, a deep learning module is used to introduce a frame attention mechanism after the convolutional neural network, and the data dimension is converted into: (1,1,frames) through a global pooling layer, a linear layer, and a normalization layer. The dimensions other than the video frame are converted into 1, and the frame weight value frames is trained through the back propagation algorithm of the neural network. Then the weight value is multiplied by the frames dimension of the data, and the data dimension is restored to: (batch size, frames, CNN embed dim), and a weight value ranging from 0 to 1 is assigned to the video frame dimension frames.

[0028] Preferably, in step seven, the time domain features of the massage technique are extracted through a recurrent neural network.

[0029] Further preferably, in step seven, a deep learning module is used to input data of dimension (batch size, frames, CNN embed dim) into a long short-term memory (LSTM) neural network to train the time domain features of the learning data, thereby realizing the extraction of the time domain features of the massage technique.

[0030] Preferably, in step eight, a deep learning module is used to connect the output of the last hidden layer of the recurrent neural network to a linear layer to reduce the data dimension to: (batch size, N Categories), and obtain the technique recognition result; the cross entropy function is used to calculate the loss between the recognition result and the real label of the data; each round of training is updated with the back propagation algorithm. After n rounds of training, a neural network that can recognize massage techniques is finally obtained, and the purpose of recognizing massage techniques is achieved.

[0031] The massage technique recognition method based on deep learning of the present invention uses a flexible tactile sensor with a distributed sensing unit that can be integrated on a glove to collect the force distribution and size data of the hand of a professional masseur, and obtains additional target data by interpolating latent variables without increasing the artificially collected data through a variational autoencoder, and extracts data key frames using a frame difference method; at the same time, a new network combining a two-dimensional convolutional neural network and a recurrent neural network is proposed to extract the spatial domain and time domain information of the massage dot matrix heat map, and a frame attention mechanism is introduced into the network to train the weight of the video frame to improve the recognition accuracy; using this method, the massage technique data of professional masseurs can be effectively collected, and the data can be trained with a neural network to achieve the purpose of identifying massage techniques, and provide a reference for robots to reproduce the massage techniques of masseurs. The present invention has the advantages of low data acquisition cost, short network training time, high recognition accuracy, and strong generalization ability.

[0032] Compared with the prior art, the present invention has the following obvious outstanding substantial features and significant advantages:

[0033] 1. The present invention uses a variational auto-encoder (VAE) to expand the original database without increasing the collected data, achieve data enhancement, and greatly reduce the cost of acquiring new data;

[0034] 2. The present invention extracts the key frames of the massage force dot matrix through the frame difference method, removes redundant frames, reduces the amount of training data of the neural network, and improves the generalization ability of the network;

[0035] 3. The present invention can effectively extract and train the spatial and temporal domain features of the massage force dot map group by combining a two-dimensional convolutional neural network with a recurrent neural network;

[0036] 4. The present invention introduces the frame attention mechanism into the neural network, increases the weight of each frame of the massage force dot matrix group, and effectively improves the recognition accuracy of the technique. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flowchart of a massage technique recognition method based on deep learning according to a preferred embodiment of the present invention.

[0038] Figure 2 This is a schematic diagram of a massage dot matrix thermal map of a data glove according to a preferred embodiment of the present invention.

[0039] Figure 3 Schematic diagram of a variational auto-encoder (VAE) according to a preferred embodiment of the present invention.

[0040] Figure 4 This is a schematic diagram of processing data collected by a tactile sensor according to a preferred embodiment of the present invention.

[0041] Figure 5 This is a flow chart of a recognition method based on deep learning according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0042] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0043] Embodiment 1:

[0044] See also Figure 1 , a massage technique recognition method based on deep learning, the operation steps are as follows:

[0045] Step 1: Collecting data corresponding to massage actions through flexible distributed tactile sensors;

[0046] Step 2: Visualize the sensor data into a massage dot matrix heat map through the host computer;

[0047] Step 3: Use variational autoencoder VAE to build a model that generates target data from latent variables to expand the original collected data;

[0048] Step 4: Extract the key frames of the massage dot matrix heat map by frame difference method;

[0049] Step 5: Use a two-dimensional convolutional neural network to extract the spatial features of the input massage force dot matrix of each frame;

[0050] Step 6: Introduce the frame attention mechanism after the convolutional neural network to assign weight values ​​to the video frame dimensions of the data;

[0051] Step 7: Use a recurrent neural network to extract the time domain features of each frame of the massage force dot matrix;

[0052] Step 8: Connect the output of the recurrent neural network to the linear layer to reduce the dimensionality of the data, train the network, and realize the recognition of massage techniques.

[0053] This embodiment is a massage technique recognition method based on deep learning. It collects data through a flexible dot matrix tactile sensor integrated on a glove and labels it, and realizes the purpose of massage technique recognition through neural network processing and training data.

[0054] Embodiment 2:

[0055] This embodiment is basically the same as the first embodiment, with the following special features:

[0056] In this embodiment, in the step 2, the massage data corresponding to the collected massage action is visualized, and each sensing unit of the tactile sensor is visualized in the host computer according to its actual distribution position on the glove through Matlab, and the magnitude of the force on the sensing unit is represented by a heat map, and the color of the sensing unit changes from cold to warm corresponding to the force on the sensing unit from small to large.

[0057] In the step three, the variational autoencoder VAE indirectly obtains the distribution of real sample data by introducing latent variables, interpolates the latent variables and decodes them into generated samples, expands the massage dot matrix heat map without collecting additional data, and realizes data enhancement.

[0058] In the step four, the frame difference method calculates the average of the pixels of every 10 frames of the dot matrix heat map of 120 frames corresponding to a massage technique, and compares the mean image with the 10 frames to select a frame with the largest pixel difference with the mean image, and retains this image with the largest difference and the mean image, and finally obtains 20 frames of key frames, and arranges the key frames in chronological order as the input of the neural network to realize data key frame extraction.

[0059] In step five, the spatial domain features of the massage techniques are extracted through a two-dimensional convolutional neural network.

[0060] In step six, the frame attention mechanism converts the data dimension into (1,1,frames) through a global pooling layer, a linear layer, and a normalization layer, converts all dimensions other than the video frame into 1, trains the weight value frames of the video frame through the back propagation algorithm of the neural network, and then multiplies the weight value by the frames dimension of the data, restores the data dimension to (batch size,frames,CNN embed dim), and assigns a weight value ranging from 0 to 1 to the video frame dimension frames.

[0061] In step seven, the time domain features of the massage technique are extracted through a recurrent neural network.

[0062] In the step seven, the last hidden layer output of the recurrent neural network is connected to a linear layer to reduce the data dimension to: (batch size, N Categories), and the technique recognition result is obtained; the cross entropy function is used to calculate the loss between the recognition result and the real label of the data; each round of training is updated with the back propagation algorithm. After n rounds of training, a neural network that can recognize massage techniques is finally obtained to realize massage technique recognition.

[0063] The massage technique recognition method based on deep learning uses a flexible tactile sensor with a distributed sensing unit to collect the force distribution and size data of the hands of professional masseurs, and obtains additional target data by interpolating hidden variables without increasing the artificially collected data through a variational autoencoder, and extracts data key frames using the frame difference method; at the same time, a new network combining a two-dimensional convolutional neural network and a recurrent neural network is used to extract the spatial and temporal domain information of the massage dot matrix heat map, and a frame attention mechanism is introduced into the network to train the weights of the video frames to improve the recognition accuracy; the method of this embodiment can effectively collect the massage technique data of professional masseurs, and use a neural network to train the data to achieve the purpose of identifying massage techniques, and provide a reference for robots to reproduce the massage techniques of masseurs. The method of this embodiment has the advantages of low data acquisition cost, short network training time, high recognition accuracy, and strong generalization ability.

[0064] Embodiment three:

[0065] In this embodiment, if Figure 1 As shown in the flowchart of this embodiment, the system is divided into three modules: data acquisition module, data processing module, and deep learning module, which specifically include the following steps:

[0066] Step 1: In the data acquisition module, the force size and distribution applied by the doctor's hands during massage are collected through tactile sensors and a data acquisition system to realize massage data collection.

[0067] Step 2: In the data processing module, the host computer receives data in real time through Matlab and converts the data in ASCII code format into an integer format, and then visualizes the data into a massage dot matrix heat map and saves it. One massage action corresponds to multiple frames of massage dot matrix heat maps arranged in chronological order; data visualization is achieved.

[0068] Step 3: In the data processing module, the data is passed through a variational auto-encoder (VAE) to build a model that can generate target data from latent variables based on the original collected massage dot matrix heat map. The latent variables correspond to the target data one by one. The original collected data is expanded by interpolating the latent variables and decoding them into generated samples to reduce the large cost of acquiring new data. For different massage techniques, different conditions are added to the variational auto-encoder (VAE) to make it a conditional variational auto-encoder (CVAE). The data of different techniques are expanded through the conditional variational auto-encoder to achieve data enhancement.

[0069] Step 4: In the data processing module, one massage technique corresponds to about 120 frames of dot matrix heat map. The pixels of every 10 frames of dot matrix heat map are averaged in chronological order, and the average image is matched with these 10 frames to select a frame with the largest pixel difference with the average image. This image with the largest difference and the average image are retained, and finally about 20 frames of key frames are obtained. The key frames are arranged in chronological order as the input of the neural network to realize the key frame extraction of the image group.

[0070] Step 5: In the deep learning module, a two-dimensional convolutional neural network is used to extract the spatial features of the input massage force dot matrix of each frame. The two-dimensional convolutional neural network adopts the ResNet-152 model pre-trained on the data set ILSVRC-2012-CLS. The last linear layer of the original ResNet-152 model is removed, and two linear layers are added to reduce the three dimensions of the color channel and horizontal and vertical pixels of the image into an embedding layer dimension of 512. The original input data dimension of the neural network is: (batchsize, frames, channels, image size x, image size y). After the two-dimensional convolutional neural network extracts the spatial features, the data dimension becomes: (batch size, frames, CNN embed dim); the extraction of spatial domain features of massage techniques is realized.

[0071] Step 6: In the deep learning module, the frame attention mechanism is introduced after the convolutional neural network. The data dimension of (batch size, frames, CNN embed dim) is converted to (batch size, CNN embed dim, frames) through dimensional transposition. The data dimension is reduced to (1, 1, frames) through a global pooling layer. The data dimension is changed to (1, 1, frames / r) through a linear layer. Then a layer of ReLU activation function is used to introduce nonlinearity into the network. Then a linear layer is used to restore the data dimension to (1, 1, frames). Then a Sigmoid function is used to normalize the value of frames between 0 and 1. At this time, the data dimension is (1, 1, frames). The data at this time is multiplied by the original data according to the dimension. The video frame dimension frames of the original data is assigned a weight between 0 and 1. After another dimensional transposition, the data with the dimension restored to (batch size, frames, CNN embed dim) is obtained.

[0072] Step 7: In the deep learning module, the video frame dimensions (batch size, frames, CNNembed dim) are input into the Long Short-Term Memory (LSTM) recurrent neural network to train the time domain features of the learning data. LSTM can store and access information over a long period of time through a unique gate structure. The input of LSTM is composed of the cell state C at the previous moment. t-1 The timing input x at this moment t The output is the cell state C at this moment. t and hidden layer h t; Realize the extraction of time domain characteristics of massage techniques.

[0073] Step 8: In the deep learning module, the output hidden layer h corresponding to the last time series of the Long Short-Term Memory (LSTM) recurrent neural network is n The output is connected to a linear layer to reduce the data dimension into: (batchsize, N Categories), the network loss function adopts the cross entropy loss function, the network optimizer adopts the Adam optimizer, and the network is trained to achieve the purpose of identifying massage techniques.

[0074] Furthermore, the massage dot matrix heat map in the above step 2, such as Figure 2 As shown, the doctor's massage force and distribution are visualized as a dot matrix heat map through the host computer, and the color of each sensor unit increases from cold to warm as the force increases.

[0075] Furthermore, the variational auto-encoder (VAE) diagram in step 3 above is as follows: Figure 3 As shown, the real samples collected by the sensor are: {X1, X2...X n}; Introduce hidden variable Z, for a given real sample X k , assuming there is a unique k The distribution of p=(Z|X k ), further assuming that this is exclusive to X k The distribution of is an independent multivariate normal distribution, each of which has two parameters: mean μ and variance σ 2 , respectively construct two neural networks: μ k =f1(X k ), To calculate the mean and variance; from the distribution p = (Z|X k ) to sample a Z k , obtained through a generator constructed by a neural network By minimizing To train the generator’s neural network; thus, the distribution of the original data can be indirectly obtained from the distribution of the latent variable Z. By interpolating the latent variables and decoding them into generated samples, the massage dot matrix heat map can be expanded without collecting additional data to achieve data enhancement.

[0076] Further, the sensor data processing schematic diagram of the data processing module in the system is as follows: Figure 4As shown in the figure, each group of massage dot matrix heat maps corresponding to different techniques are collected and expanded using conditional variational auto-encoder (CVAE). At this time, the number of samples of each massage technique increases while the number of video frames corresponding to each sample remains unchanged. The expanded sensor data is extracted using the frame difference method, and the 120 frames of massage dot matrix heat maps corresponding to each sample are extracted to about 20 frames using the frame difference method as the input of the convolutional neural network.

[0077] Furthermore, the deep learning method flow chart of the deep learning module in the system is as follows: Figure 5 As shown, first, the pre-processed data is used as the input of the neural network, and the number of iterations of the network is set; the spatial domain features of the massage data are extracted by a two-dimensional convolutional neural network, and the temporal domain features of the massage data are extracted by a long short-term memory recurrent neural network, and a frame attention mechanism is introduced between the two neural networks; the two-dimensional convolutional neural network adopts the ResNet-152 model pre-trained on the data set ILSVRC-2012-CLS. During the network training process, some weight parameters in the pre-trained ResNet-152 model can be frozen to reduce the computational cost of training. The two-dimensional convolutional neural network reduces the dimension of the massage dot matrix heat map of about 20 frames corresponding to each massage technique sample, extracts features for encoding, and then arranges the encoded massage dot matrix heat map in chronological order. The data dimension after encoding by the two-dimensional convolutional neural network becomes: (batch size, frames, CNN embeddim); after the encoded data passes through the frame attention mechanism of the global pooling layer, two linear layers and two activation functions, its video frame dimension frames obtains a weight value ranging from 0 to 1, and the data dimension is: (batch size, frames, CNN embed dim); the data is input into the Long Short-Term Memory (LSTM) recurrent neural network in the order of frames dimension to train the time domain features of the learning data, and a linear layer is added after the recurrent neural network to reduce the data dimension to: (batch size, frames); after passing through the softmax layer, the data output is normalized between 0 and 1, and the cross entropy loss function is used to calculate the loss between the recognition result and the true label. After each training round, the back propagation algorithm is used to update the weight parameters of the network; after n rounds of training, a neural network that can recognize massage techniques is finally obtained.

[0078] The massage technique recognition method described in the above embodiment has the following significant advantages:

[0079] 1. The embodiment uses a variational auto-encoder (VAE) to expand the original database without increasing the collected data, achieves data enhancement, and greatly reduces the cost of acquiring new data;

[0080] 2. The embodiment extracts the key frames of the massage force dot matrix through the frame difference method, removes the redundant frames, reduces the amount of training data of the neural network, and improves the generalization ability of the network;

[0081] 3. The embodiment combines a two-dimensional convolutional neural network with a recurrent neural network to effectively extract and train the spatial and temporal domain features of the massage force dot matrix group;

[0082] 4. The embodiment introduces the frame attention mechanism into the neural network, increases the weight of each frame of the massage force dot matrix group, and effectively increases the recognition accuracy of the technique.

[0083] In summary, the massage technique recognition method based on deep learning in the above embodiment of the present invention collects the force distribution and force size information of the hand of a professional masseur during massage through a flexible tactile sensor, and uses a neural network to explore the characteristics of the massage techniques of professional masseurs during massage, so as to realize the recognition of the massage techniques of professional masseurs; adopts a variational autoencoder to realize data enhancement; uses the frame difference method to extract the key frames of the input data and remove the redundant frames of the input; extracts and trains the spatial domain and time domain features of the massage dot matrix heat map group by combining a two-dimensional convolutional neural network with a recurrent neural network; introduces a frame attention mechanism after the convolutional neural network to further improve the network's recognition accuracy of massage techniques. The above embodiment of the present invention expands the original sensor data without increasing the cost of collecting data; extracts the key frames of the image group data, reduces the overfitting phenomenon of the network, and increases the generalization ability of the network; the neural network further extracts the time domain information between the video frames to obtain the important time domain features of the massage technique; and effectively improves the recognition accuracy by introducing the frame attention mechanism.

[0084] The above is only a preferred embodiment of the present invention and does not limit the present invention in any form. Various changes can be made to the present invention in form and detail. Any simple modification and equivalent changes to the above embodiments based on the technical essence of the present invention fall within the protection scope of the present invention.

Claims

1. A massage technique recognition method based on deep learning, characterized in that: The steps are as follows: Step 1: Collecting data corresponding to massage actions through flexible distributed tactile sensors; Step 2: Visualize the sensor data into a massage dot matrix heat map through the host computer; Step 3: Use variational autoencoder VAE to build a model that generates target data from latent variables to expand the original collected data; Step 4: Extract the key frames of the massage dot matrix heat map by frame difference method; Step 5: Use a two-dimensional convolutional neural network to extract the spatial features of the input massage force dot matrix of each frame; Step 6: Introduce the frame attention mechanism after the convolutional neural network to assign weight values ​​to the video frame dimensions of the data; Step 7: Use a recurrent neural network to extract the time domain features of each frame of the massage force dot matrix; Step 8: Connect the output of the recurrent neural network to the linear layer to reduce the dimensionality of the data, train the network, and realize the recognition of massage techniques; In the step 2, the massage data corresponding to the collected massage action is visualized, and each sensing unit of the tactile sensor is visualized in the upper computer according to its actual distribution position on the glove through Matlab, and the magnitude of the force on the sensing unit is represented by a heat map, and the color of the sensing unit from cold to warm corresponds to the force on the sensing unit from small to large; In step 6, the frame attention mechanism converts the data dimension into (1, 1, frames) through the global pooling layer, the linear layer, and the normalization layer, converts all dimensions other than the video frame into 1, trains the weight value frames of the video frame through the back propagation algorithm of the neural network, and then multiplies the weight value by the frames dimension of the data to restore the data dimension to (batch size, frames, CNN embed dim), and assigns a weight value ranging from 0 to 1 to the video frame dimension frames; In the step eight, the last hidden layer output of the recurrent neural network is connected to a linear layer to reduce the data dimension to: (batch size, N Categories), and the technique recognition result is obtained; the cross entropy function is used to calculate the loss between the recognition result and the real label of the data; each round of training is performed using the back propagation algorithm to update the weight parameters of the network; after n rounds of training, a neural network that can recognize massage techniques is finally obtained to realize massage technique recognition.

2. The massage technique recognition method based on deep learning according to claim 1 is characterized in that: In the step three, the variational autoencoder VAE indirectly obtains the distribution of real sample data by introducing latent variables, interpolates the latent variables and decodes them into generated samples, expands the massage dot matrix heat map without collecting additional data, and realizes data enhancement.

3. The massage technique recognition method based on deep learning according to claim 1 is characterized in that: In the step four, the frame difference method calculates the average of the pixels of every 10 frames of the dot matrix heat map of 120 frames corresponding to a massage technique, and compares the mean image with the 10 frames to select a frame with the largest pixel difference with the mean image, and retains this image with the largest difference and the mean image, and finally obtains 20 frames of key frames, and arranges the key frames in chronological order as the input of the neural network to realize data key frame extraction.

4. The massage technique recognition method based on deep learning according to claim 1 is characterized in that: In step five, the spatial domain features of the massage techniques are extracted through a two-dimensional convolutional neural network.

5. The massage technique recognition method based on deep learning according to claim 1 is characterized in that: In step seven, the time domain features of the massage technique are extracted through a recurrent neural network.

Citation Information

Patent Citations

  • Sign language recognition method based on space-time attention mechanism

    CN111091045A

  • Hand key point detection method

    CN112149590A

  • Biometrics-based gesture recognition method and apparatus, computer device, and medium

    WO2021120834A1