Wrist pulse diagnosis point positioning method based on heat map and time sequence attention priori

Through the wrist pulse diagnosis point positioning method based on heat map and temporal attention prior, using the deep learning model and U-Net architecture, the problem of subjective guessing and finger pressure influence in the traditional pulse diagnosis method is solved, and small-scale infrared video is realized The rapid and accurate positioning of wrist pulse diagnosis points under the data set improves the accuracy of disease judgment.

CN118736006AActive Publication Date: 2024-10-01FUDAN UNIVERSITY
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410751094.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-01
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

Traditional pulse diagnosis methods are subject to subjective assumptions and the influence of finger pressure, which leads to deviations in disease judgment. Moreover, pulse data cannot be effectively stored and objectified, affecting the accuracy of disease judgment.

Method used

A wrist pulse diagnosis point positioning method based on heat map and temporal attention prior is adopted, and the key points of 'inch, guan, and ruler' are marked through the infrared video data set, and a deep learning model is built using U-Net as the baseline architecture, combined with temporal attention. Module, generate heat map and fit pulse diagnosis point coordinates through center area mean method.

Benefits of technology

It achieves rapid and accurate positioning of wrist pulse diagnosis points under a small-scale infrared video data set, improves positioning accuracy, and surpasses the lack of accuracy of existing deep learning methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736006A_ABST
    Figure CN118736006A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of computer image processing, and particularly relates to a wrist pulse diagnosis point positioning method based on a heat map and time sequence attention priori. The method comprises the following steps: constructing two-dimensional coordinates of cun, guan and chi key points as supervision information according to an infrared video data set; constructing a deep learning model, specifically taking U-Net as a baseline architecture, and combining a time sequence attention priori module; the U-Net encoder extracts features of input data, the decoder generates a heat map, the heat map generated after each time of up-sampling is fused with the features of the corresponding level, a key point heat map is obtained after the original resolution is recovered, and finally key point coordinates are obtained through key point fitting. The time sequence attention priori is subjected to feature fusion with the low-level semantic features of the encoder and the high-level semantic features of the decoder through jump connection, so that the model can better utilize the time sequence information of the infrared video, and a more accurate key point heat map is output. And finally, predicting to obtain a heat map of the wrist pulse diagnosis point, and performing key point fitting to obtain pulse diagnosis point coordinate information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computer image processing, and in particular relates to a wrist pulse diagnosis point positioning method. Background Art

[0002] Pulse diagnosis is one of the methods commonly used by Chinese medicine practitioners to diagnose diseases. Chinese medicine practitioners press their fingers on the patient's wrist at the inch, joint and chi positions to feel the patient's pulse and judge the condition. However, the problems faced by traditional pulse diagnosis include: Chinese medicine practitioners have a lot of subjective speculation in their judgment of the condition, and may have different judgments on the same condition; the pressure applied by the fingers will affect the patient's own pulse, resulting in deviations in the Chinese medicine practitioner's judgment of the condition; the patient's pulse data is not effectively stored, affecting the judgment of the condition in the future. With the advent of the information age, the objective development of pulse diagnosis has become one of the emerging research directions in the field of Chinese medicine, and the vigorous development of artificial intelligence in recent years has opened up a new direction for the objective development of pulse diagnosis.

[0003] With the improvement of hardware performance and theoretical optimization of deep learning, more and more artificial intelligence-related applications have emerged, including high-precision positioning key points, high-precision object detection, high-precision image recognition, etc. Many researchers have developed pulse diagnosis instruments to simulate Chinese medicine practitioners to perform pulse diagnosis, and use various sensors to locate pulse diagnosis points and obtain pulse information. In the process of pulse diagnosis instruments simulating Chinese medicine pulse diagnosis, accurately locating wrist pulse diagnosis points is a crucial step. The current method with higher accuracy is wrist pulse diagnosis point positioning based on deep learning, but it is still facing the problem of insufficient accuracy. The purpose of the present invention is to provide a wrist key point positioning method based on heat map and temporal attention prior. Summary of the invention

[0004] The purpose of the present invention is to provide a wrist pulse diagnosis point positioning method based on heat map and temporal attention prior, so as to realize fast and accurate positioning of the wrist pulse diagnosis point with a small-scale infrared video data set.

[0005] The wrist pulse diagnosis point positioning method based on heat map and temporal attention prior provided by the present invention has the following basic steps: firstly, based on the infrared video data set, the two-dimensional coordinates of the key points of "Cun, Guan, Chi" are annotated as the supervision information of the deep learning model;

[0006] Secondly, a deep learning model is constructed, which uses U-Net as the baseline architecture and combines the temporal attention prior. U-Net mainly includes encoder, decoder, skip connection, maximum pooling layer, and transposed convolution layer. The encoder is responsible for extracting the features of the input data and the downsampled data, and the decoder is responsible for generating the heat map. The heat map generated after each upsampling is fused with the corresponding level features, and the key point heat map is obtained after restoring to the original resolution; the temporal attention prior is used to fuse the low-level semantic features of the encoder and the high-level semantic features of the decoder through skip connections, so that the model can better utilize the temporal information of the infrared video and output a more accurate key point heat map. The maximum pooling layer is used to reduce the data dimension; the transposed convolution layer increases the size of the feature map and reconstructs the feature map; finally, the wrist video data to be tested is used as the input of the trained deep learning model to predict the heat map of the wrist pulse diagnosis point, and the coordinates of the wrist pulse diagnosis point are obtained by fitting the key points.

[0007] The wrist pulse diagnosis point positioning method based on heat map and temporal attention prior proposed by the present invention has the following specific steps:

[0008] (1) Based on the infrared video dataset, the two-dimensional coordinates of the key points of "Cun, Guan, Chi" are constructed as supervision information;

[0009] (2) Build a deep learning network;

[0010] The deep learning model uses U-Net as the baseline architecture and combines it with a temporal attention prior module.

[0011] In the temporal attention prior module, we first calculate the grayscale average value of each spatial position in the video, then subtract the grayscale average value from each frame in the video image set and take the absolute value to represent the degree of change of the grayscale value (i.e., the difference), then add up the difference of each spatial position to obtain the spatial attention map, and finally set a threshold to suppress the spatial positions with little change to obtain its temporal attention prior.

[0012] U-Net is divided into a contraction path and an expansion path, and consists of multiple encoders, decoders, skip connections, maximum pooling layers, and transposed convolution layers. The encoder is responsible for extracting the features of the input data; the decoder is responsible for generating heat maps; the skip connection enables the network to combine high-resolution detail information with upsampled coarse information, which helps solve the gradient vanishing problem of deep learning models; the maximum pooling layer reduces the size of the feature map, retains important features, reduces the amount of calculation, and reduces the occurrence of overfitting; the transposed convolution layer increases the size of the feature map and reconstructs the feature map. Each encoder or decoder consists of two 3×3 convolution layers, and a ReLU activation layer and a batch normalization layer are added after each convolution layer. Among them, the convolution layer is used to extract the features of the input data; the batch normalization layer is used to speed up the convergence of the model; the ReLU activation function layer is used to give the model nonlinear fitting capabilities to solve complex data fitting problems. In addition, based on the U-Net jump connection, the temporal attention prior is combined to fuse the temporal attention prior with the low-level semantic features of the encoder and the high-level semantic features of the decoder, so that the model can better utilize the temporal information of the infrared video and output a more accurate key point heat map. Specifically, feature fusion is performed by splicing after convolution in the decoder.

[0013] (3) Training deep learning networks;

[0014] The collected infrared video data set is divided into training set, validation set and test set; the training set is used to train the deep learning model to fit the data distribution; the validation set is used to verify the generalization of the deep learning model during the training process and record the model with the best generalization; the test set is used to perform performance testing on the trained deep learning model to measure the performance of the deep learning model;

[0015] (4) Using the trained deep learning model, obtain the heat map of the key points “Cun, Guan, Chi”;

[0016] (5) The key point heat map of each channel is fitted with the center area mean method to obtain the coordinates of the wrist pulse diagnosis point.

[0017] Furthermore, in step (1), based on the infrared video dataset, two-dimensional coordinates of the key points of "Cun, Guan, Chi" are constructed as supervision information. Specifically, the "Cun, Guan, Chi" in the infrared video are annotated by a traditional Chinese medicine practitioner, and used as supervision information for the deep learning model.

[0018] Furthermore, the infrared video data set described in step (3) is divided into a training set, a validation set, and a test set, specifically:

[0019] The infrared video dataset described in step (1) is divided into 70% as a training set, 20% as a validation set, and 10% as a test set.

[0020] Furthermore, the training of the deep learning model in step (3) includes:

[0021] First, set the model hyperparameters:

[0022] Batch size: A larger batch size can make the model converge faster, but the size of the video memory needs to be considered;

[0023] Learning rate: The learning rate affects the speed of updating model parameters. A larger learning rate may prevent the model from converging to the extreme value, while a smaller learning rate may make the model converge more slowly.

[0024] Epoch: The number of times the entire training set is fully trained;

[0025] The model is then trained, using the mean squared error (MSE) loss function as a measure of model performance:

[0026]

[0027] Where h represents the real heat map, Represents the heat map generated by the model. The physical meaning of this loss function is the average of the squares of the difference between the predicted value and the true value of each pixel. The model back-propagates the gradient, and the optimizer updates the parameters according to the gradient, so that the coordinates predicted by the model are closer to the true coordinates. During the training process, there are training loss and validation loss. If the two decrease in the same trend, it means that the prediction ability of the model is gradually improving. When the two no longer decrease, it means that the model has converged and the training is over.

[0028] Furthermore, step (4) uses the trained deep learning model to output a key point heat map; specifically:

[0029] (1) First, use an infrared camera to take a video of the wrist;

[0030] (2) Use wrist video as model input to generate key point heat map;

[0031] Furthermore, in step (5), the key point heat map of each channel is fitted with the circle center area mean method to obtain the coordinates of the wrist pulse diagnosis point; specifically, the point with the maximum probability value is taken as the center of the circle, and the probability expectation value within the unit circle is taken as the final coordinate.

[0032] Compared with the existing wrist pulse diagnosis point positioning based on deep learning method, the beneficial effects of the present invention are:

[0033] With a small-scale infrared video data set, the positions of the wrist pulse diagnosis points of "Cun, Guan, and Chi" can be located quickly and accurately. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is the overall flow chart of the present invention.

[0035] Figure 2 Temporal attention prior templates for different samples.

[0036] Figure 3 For deep learning model architecture.

[0037] Figure 4 This is a visualization of the wrist pulse diagnosis point prediction of the test data using the trained deep learning model combined with key point fitting. DETAILED DESCRIPTION

[0038] The present invention is further described below through experimental examples.

[0039] 1. Parameter settings

[0040] The batch size is set to 4 and the learning rate is set to 10. -5 , the number of iterations is set to 100.

[0041] 2. Experimental Results

[0042] like Figure 4 As shown in the figure, the red dots are the real coordinates, the blue dots are the model-predicted coordinates, and the green circle is the threshold range. After 100 iterations, the coordinates predicted by the model are very close to the real coordinates, indicating that the model can accurately predict the coordinates of the wrist pulse diagnosis points.

[0043] 3. Comparison with key point detection task model

[0044] We evaluate the positioning accuracy of the model based on the Euclidean distance between the model's predicted coordinates and the true coordinates. The accuracy is the ratio of the number of test samples whose Euclidean distance between the predicted coordinates and the true coordinates is less than the threshold T to the number of test sets:

[0045]

[0046] Among them, S is the test set, S i is the test sample set whose predicted coordinates are within the threshold, y i is the real coordinate, is the model prediction coordinate, T is the threshold, which is set to 100, 80, 60, 40, and 20 respectively. The model proposed in the present invention is compared with other commonly used key point detection architectures, as shown in Table 1. As can be seen from Table 1, the positioning accuracy of the architecture proposed in the present invention is much higher than that of other model architectures at thresholds of 80 pixels, 60 pixels, 40 pixels, and 20 pixels, indicating that the architecture based on heat map and temporal attention prior is indeed superior to other methods in the ability to capture spatiotemporal features, indicating that the architecture proposed in the present invention can accurately locate the three wrist pulse diagnosis points of "Cun", "Guan", and "Chi" at the same time.

[0047] Table 1

[0048]

[0049]

[0050] References

[0051] [1]NEWELLA,YANGK,DENGJ.Stacked hourglass networks for human poseestimation[C] / / European conference on computer vision.2016:483-499.

[0052] [2]CHEN Y,WANG Z,PENG Y,et al.Cascaded pyramid network for multi-person poseestimation[C] / / Proceedings of the IEEE conference on computervision and patternrecognition.2018:7103-7112.

[0053] [3]ESLAMI M,NEUSCHAEFER-RUBE C,SERRURIER A.Automatic vocal tractlandmarklocalization from midsagittal mri data[J].Scientific reports,2020,10(1):1468.[4]CAI Y,WANGZ,LUOZ,et al.Learning delicate local representationsformulti-person pose estimation[C] / / European Conference on ComputerVision.Springer,2020:455-472.

[0054] [5]YANGB,MENGK,LUH,et al.Sfcn:Spoon fully convolutional networks forpulselocalization[C] / / 2022IEEE International Symposium on Circuits andSystems(ISCAS).IEEE,2022:2861-2865.

[0055] [6]RONNEBERGER O,FISCHER P,BROX T.U-net:Convolutional networks forbiomedicalimage segmentation[C] / / International Conference on Medical imagecomputing andcomputer-assisted intervention.Springer,2015:234-241。

Claims

1. A wrist pulse diagnosis point positioning method based on heat map and temporal attention prior, characterized in that: The specific steps are as follows: (1) Based on the infrared video dataset, the two-dimensional coordinates of the key points of "Cun, Guan, Chi" are constructed as supervision information; (2) Build a deep learning network; The deep learning model uses U-Net as the baseline architecture and combines it with a temporal attention prior module; In the temporal attention prior module, the grayscale average value of each spatial position in the video is first calculated, and the grayscale average value is subtracted from each frame in the video image set and the absolute value is taken to represent the degree of change of the grayscale value. Then, the difference of each spatial position is added up to obtain the spatial attention map. Finally, a threshold is set to suppress the spatial position with little change to obtain its temporal attention prior. U-Net is divided into a contraction path and an expansion path, and is composed of multiple encoders, decoders, skip connections, maximum pooling layers, and transposed convolution layers. The encoder is responsible for extracting the features of the input data. The decoder is responsible for generating heat maps. The skip connection enables the network to combine high-resolution detail information with upsampled coarse information, which helps solve the gradient vanishing problem of deep learning models. The maximum pooling layer is used to reduce the size of the feature map, retain important features, reduce the amount of calculation, and reduce the occurrence of overfitting. The transposed convolution layer is used to increase the size of the feature map and reconstruct the feature map. Each encoder or decoder consists of two 3×3 convolution layers, and a ReLU activation layer and a batch normalization layer are added after each convolution layer. Among them, the convolution layer is used to extract the features of the input data. The batch normalization layer is used to speed up the convergence of the model. The ReLU activation function layer enables the model to have nonlinear fitting capabilities and solve complex data fitting problems. In addition, based on the U-net skip connection, the temporal attention prior is fused with the low-level semantic features of the encoder and the high-level semantic features of the decoder, so that the model can better utilize the temporal information of the infrared video and output a more accurate key point heat map. (3) Training deep learning networks; The collected infrared video data set is divided into training set, validation set and test set; the training set is used to train the deep learning model to fit the data distribution; the validation set is used to verify the generalization of the deep learning model during the training process and record the model with the best generalization; the test set is used to perform performance testing on the trained deep learning model to measure the performance of the deep learning model; (4) Using the trained deep learning model, obtain the heat map of the key points "Cun, Guan, Chi"; (5) The key point heat map of each channel is fitted with the center area mean method to obtain the coordinates of the wrist pulse diagnosis point.

2. The wrist pulse diagnosis point positioning method according to claim 1, characterized in that: In step (1), based on the infrared video dataset, the two-dimensional coordinates of the key points of "Cun, Guan, Chi" are constructed as supervision information. Specifically, the key points of "Cun, Guan, Chi" in the infrared video are annotated by a traditional Chinese medicine practitioner, and used as supervision information for the deep learning model.

3. The wrist pulse diagnosis point positioning method according to claim 1, characterized in that: The infrared video dataset described in step (3) is divided into a training set, a validation set, and a test set. Specifically, the infrared video dataset described in step (1) is divided into 70% as a training set, 20% as a validation set, and 10% as a test set.

4. The wrist pulse diagnosis point positioning method according to claim 1, characterized in that: The step (3) of training the deep learning model includes: First, set the model hyperparameters, including batch size, learning rate, and number of iterations; The model is then trained, using the mean squared error (MSE) loss function as a measure of model performance: Among them, h represents the real heat map, Represents the heat map generated by the model; the physical meaning of the loss function is the average of the squares of the difference between the predicted value and the true value of each pixel; the model back-propagates the gradient, and the optimizer updates the parameters according to the gradient, so that the coordinates predicted by the model are closer to the true coordinates; during the training process, it includes training loss and validation loss. If the two decrease in the same trend, it means that the prediction ability of the model is gradually improving. When the two no longer decrease, it means that the model has converged and the training is over.

5. The wrist pulse diagnosis point positioning method according to claim 1, characterized in that: Step (4) uses the trained deep learning model to output a key point heat map; specifically: (1) First, use an infrared camera to take a video of the wrist; (2) Use the wrist video as model input to generate a key point heat map.

6. The wrist pulse diagnosis point positioning method according to claim 1, characterized in that: In step (5), the key point heat map of each channel is fitted with the circle center area mean method to obtain the coordinates of the wrist pulse diagnosis point; specifically, the point with the maximum probability value is taken as the center of the circle, and the probability expectation value within the unit circle is taken as the final coordinate.

Citation Information

Patent Citations

  • Guan pulse recognition system based on thermal imaging

    CN109427065A

  • Multi-person posture estimation method based on global information integration

    CN110135375A

  • Far infrared thermal imaging human body meridian key point positioning method

    CN111444896A

  • Wrist pulse mouth position accurate positioning method based on near-infrared camera shooting and deep learning

    CN116168077A

  • Method for realizing motion capture and intelligent judgment by applying artificial intelligence technology

    CN116416678A