Acupoint reflex zone determination method, device, acupuncture robot and storage medium
By using a combination of the initial feature extraction module, the joint attention module and the hole feature extraction module in the acupoint reflection area determination method, the problem of low accuracy of the acupoint reflection area in the existing technology is solved, and higher acupoint reflection area identification is achieved Accuracy and characterization capabilities.
Patent Information
- Application Number
- CN202410794591.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-19
AI Technical Summary
The accuracy of determining the acupoint reflection area in the existing technology is low, mainly due to the reduction in feature extraction resolution caused by downsampling in the image recognition algorithm, which affects the accuracy of the acupoint reflection area.
A method for determining acupoint reflection areas is used to obtain high-resolution and low-resolution features through the initial feature extraction module, and the first and second joint attention modules are used for attention learning respectively, and the hole feature extraction module is combined for hole convolution. , and finally fuse features through the output module to improve the accuracy of the acupoint reflection area.
By fusing different levels of feature information and feature representations at different scales, the accuracy of the acupoint reflection area is significantly improved, the representation ability of features is improved, and the recognition performance of the model is enhanced.
Smart Images

Figure CN118366002B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of acupoint identification, and specifically to a method and device for determining an acupoint reflex zone, an acupuncture robot and a storage medium. Background Art
[0002] In traditional Chinese medicine theory, acupoints are an important part of the human meridian system and an important node for the circulation of qi and blood. In traditional Chinese medicine physiotherapy and health care, it is often necessary to press and acupuncture multiple related acupoints in an orderly manner to improve the effects of physiotherapy and health care. The area composed of these related acupoints is called an acupoint reflex zone. Specifically, the reflex zone can correspond to the chest, abdomen, pelvis and other parts of the human body, which is more significant than a single acupoint.
[0003] The traditional method of determining reflex zones is to manually analyze and determine reflex zones based on the experience and skills accumulated by TCM masters over many years. This method is highly subjective and requires high experience from TCM masters, and the efficiency and accuracy of determining acupoint reflex zones are low. In order to solve this technical problem, the prior art proposes to determine acupoint reflex zones based on existing mature image recognition algorithms, such as DeeplabV3 and other algorithms, which improve the efficiency and accuracy of determining acupoint reflex zones to a certain extent. However, since the recognition process in mature image recognition algorithms is mostly based on extracting features based on a feature extraction network composed of multiple downsampling layers, and then determining acupoint reflex zones based on the extracted features. However, downsampling will reduce the resolution of the image, and directly determining acupoint reflex zones based on the downsampled features will result in a low accuracy rate for acupoint reflex zones.
[0004] Therefore, there is an urgent need to provide a method, device, acupuncture robot and storage medium for determining acupoint reflex areas to improve the accuracy of the determined acupoint reflex areas. Summary of the invention
[0005] In view of this, it is necessary to provide a method and device for determining acupoint reflex zones, an acupuncture robot and a storage medium to solve the technical problem of low accuracy of the determined acupoint reflex zones in the prior art.
[0006] In one aspect, the present invention provides a method for determining an acupoint reflex zone, comprising:
[0007] Acquire an acupoint reflexology area determination model, the acupoint reflexology area determination model comprising an initial feature extraction module, a first joint attention module, a hole feature extraction module, a second joint attention module and an output module;
[0008] Extract features from the input image based on the initial feature extraction module to obtain high-resolution features and low-resolution features;
[0009] Performing attention learning on the low-resolution features based on the first joint attention module to obtain a first attention feature;
[0010] Based on the hole feature extraction module, a hole convolution is performed on the first attention feature to obtain a hole convolution feature;
[0011] Based on the second joint attention module, attention learning is performed on the high-resolution features to obtain the second attention features;
[0012] Based on the output module, the hole convolution features and the second attention features are fused to obtain multiple acupoint reflex areas.
[0013] In some possible implementations, the initial feature extraction module includes at least two downsampling layers, the at least two first downsampling layers include a first downsampling layer and a second downsampling layer, and the step of extracting features from the input image based on the initial feature extraction module to obtain high-resolution features and low-resolution features includes:
[0014] Performing feature extraction on the input image based on the first downsampling layer to obtain the high-resolution feature;
[0015] Feature extraction is performed on the high-resolution feature based on the second down-sampling layer to obtain the low-resolution feature.
[0016] In some possible implementations, the first joint attention module includes a spatial attention unit, a compressed channel attention unit, and a fusion unit; and performing attention learning on the low-resolution feature based on the first joint attention module to obtain the first attention feature includes:
[0017] Performing spatial attention learning on the low-resolution feature based on the spatial attention unit to obtain a spatial attention feature;
[0018] Based on the compressed channel attention unit, compressed channel attention learning is performed on the low-resolution feature to obtain a compressed channel attention feature;
[0019] The spatial attention feature and the compressed channel attention feature are fused based on the fusion unit to obtain the first attention feature.
[0020] In some possible implementations, the compressed channel attention unit includes a first channel convolution layer, a global pooling layer, a first activation function layer, a second activation function layer, and a second channel convolution layer; then based on the compressed channel attention unit, compressed channel attention learning is performed on the low-resolution feature to obtain a compressed channel attention feature, including:
[0021] Performing dimensionality reduction processing on the low-resolution features based on the first channel convolution layer to obtain dimensionality reduction features;
[0022] Performing global context information extraction processing on the dimension reduction features based on the global pooling layer to obtain context features;
[0023] Performing nonlinear feature extraction on the context feature based on the first activation function layer to obtain a first nonlinear feature;
[0024] Perform secondary nonlinear feature extraction based on the second activation function layer and the first nonlinear feature to obtain a second nonlinear feature;
[0025] Performing a dot product process on the second nonlinear feature and the low-resolution feature to obtain a dot product feature;
[0026] The point product feature is convolved based on the second channel convolution layer to obtain the compressed channel attention feature.
[0027] In some possible implementations, the hole feature extraction module includes a first convolution layer, four hole convolution layers, a pooling layer, and a hole splicing layer, and the expansion rates of the four hole convolution layers are 3, 7, 12, and 16, respectively; the hole feature extraction module performs hole convolution on the first attention feature to obtain the hole convolution feature, including:
[0028] Performing convolution processing on the first attention feature based on the first convolution layer to obtain a first feature;
[0029] Based on the four dilated convolution layers, respectively perform dilated convolution processing on the first attention features to obtain four second features;
[0030] Performing pooling processing on the first attention feature based on the pooling layer to obtain a pooling feature;
[0031] The first feature, four of the second features, and the pooling feature are spliced based on the hole splicing layer to obtain the hole convolution feature.
[0032] In some possible implementations, the loss function used in the training of the acupoint reflexology area determination model is:
[0033]
[0034] In the formula, is the loss value; t is the category of the current sample; For Category t The corresponding weights; Output probability distribution for category t The probability value of is an adjustable focus parameter.
[0035] In some possible implementations, the acupoint reflexology zone determination method further includes:
[0036] Acquire a plurality of key acupoints of the input image, and determine actual key acupoints in the acupoint reflexology area based on the plurality of key acupoints;
[0037] Based on the theoretical correlation between the key acupoints and the acupoint reflexology areas, determining the theoretical key acupoints in each acupoint reflexology area;
[0038] The accuracy of the acupoint reflexology zone is verified based on the theoretical key acupoints and the actual key acupoints.
[0039] On the other hand, the present invention also provides a device for determining acupoint reflex zones, comprising:
[0040] A model acquisition unit, used to acquire an acupoint reflexology area determination model, wherein the acupoint reflexology area determination model includes an initial feature extraction module, a first joint attention module, a hole feature extraction module, a second joint attention module, and an output module;
[0041] An initial feature extraction unit, used to extract features from the input image based on the initial feature extraction module to obtain high-resolution features and low-resolution features;
[0042] A first attention learning unit, configured to perform attention learning on the low-resolution feature based on the first joint attention module to obtain a first attention feature;
[0043] A dilated convolution feature extraction unit, configured to perform dilated convolution on the first attention feature based on the dilated feature extraction module to obtain a dilated convolution feature;
[0044] A second attention learning unit, configured to perform attention learning on the high-resolution feature based on the second joint attention module to obtain a second attention feature;
[0045] The acupoint reflexology area determination unit is used to fuse the hole convolution feature and the second attention feature based on the output module to obtain multiple acupoint reflexology areas.
[0046] On the other hand, the present invention also provides an acupuncture robot, comprising a memory and a processor, wherein:
[0047] The memory is used to store programs;
[0048] The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the acupoint reflexology area determination method described in any one of the possible implementations above.
[0049] On the other hand, the present invention also provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps in the method for determining acupoint reflex areas described in any possible implementation method mentioned above are implemented.
[0050] The beneficial effect of adopting the above-mentioned embodiment is as follows: the acupoint reflexology area determination method provided by the present invention extracts features from the input image by setting an initial feature extraction module to obtain high-resolution features and low-resolution features, and then respectively performs attention learning on the low-resolution features and the high-resolution features through the first joint attention module and the second joint attention module, and finally fuses the features after attention learning through the output module to achieve the determination of the acupoint reflexology area. Compared with the method of only extracting features from low-resolution features to obtain acupoint reflexology areas in the prior art, the present invention simultaneously performs attention learning and fusion on low-resolution features and high-resolution features, and can fuse information at different levels, thereby improving the accuracy of acupoint reflexology areas.
[0051] Furthermore, the present invention sets a first joint attention module and a second joint attention module to perform attention learning on features, so that the learned features include richer and more detailed feature information, improves the representation ability of the features, and further improves the accuracy of the acupoint reflex areas.
[0052] Furthermore, the present invention performs a dilated convolution on the first attention feature by setting a dilated feature extraction module, and the dilated convolution uses dilated convolutions with different dilation rates to obtain feature information at different scales. The dilation rate determines the dilation interval in the convolution kernel, which can affect the size of the receptive field. In turn, feature representations at different scales can be obtained, further improving the accuracy of acupoint reflex areas. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0054] Figure 1 A schematic flow chart of an embodiment of the method for determining acupoint reflex zones provided by the present invention;
[0055] Figure 2 A schematic diagram of the structure of an embodiment of the acupoint reflexology area determination model provided by the present invention;
[0056] Figure 3 For the present invention Figure 1 A schematic flow chart of an embodiment of S102;
[0057] Figure 4 A schematic diagram of the structure of an embodiment of the first joint attention module provided by the present invention;
[0058] Figure 5 For the present invention Figure 1 A schematic flow chart of an embodiment of S103;
[0059] Figure 6 For the present invention Figure 5 A schematic flow chart of an embodiment of S502;
[0060] Figure 7 For the present invention Figure 1 A schematic flow chart of an embodiment of S104;
[0061] Figure 8 A schematic diagram of an embodiment of a flow chart for verifying acupoint reflex zones provided by the present invention;
[0062] Fig. 9 A schematic diagram of the structure of an embodiment of the acupoint reflexology zone determination device provided by the present invention;
[0063] Fig.10 This is a schematic structural diagram of an embodiment of the acupuncture robot provided by the present invention. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0065] It should be understood that the schematic drawings are not drawn to scale. The flowchart used in the present invention shows the operations implemented according to some embodiments of the present invention. It should be understood that the operations of the flowchart can be implemented out of order, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present invention, can add one or more other operations to the flowchart, and can also remove one or more operations from the flowchart. Some of the block diagrams shown in the accompanying drawings are functional entities, which do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor systems and / or microcontroller systems.
[0066] The descriptions of "first", "second", etc. involved in the embodiments of the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" or "second" may explicitly or implicitly include at least one of the features.
[0067] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0068] The present invention provides a method and device for determining acupoint reflex zones, an acupuncture robot and a storage medium, which are described below respectively.
[0069] Figure 1 This is a flow chart of an embodiment of the method for determining acupoint reflexology zones proposed in an embodiment of the present invention. Figure 2 FIG. 1 is a schematic diagram of an embodiment of the acupoint reflexology area determination model proposed in the present invention. Figure 1 and Figure 2 As shown, the method for determining the acupoint reflex zone includes:
[0070] S101, obtaining an acupoint reflexology area determination model, the acupoint reflexology area determination model comprising an initial feature extraction module, a first joint attention module, a hole feature extraction module, a second joint attention module and an output module;
[0071] S102, extracting features from the input image based on the initial feature extraction module to obtain high-resolution features and low-resolution features;
[0072] S103, performing attention learning on the low-resolution feature based on the first joint attention module to obtain a first attention feature;
[0073] S104, performing a dilated convolution on the first attention feature based on the dilated feature extraction module to obtain a dilated convolution feature;
[0074] S105, performing attention learning on the high-resolution feature based on the second joint attention module to obtain a second attention feature;
[0075] S106. Based on the output module, the hole convolution feature and the second attention feature are fused to obtain multiple acupoint reflex areas.
[0076] The acupoint reflexology area determination model in step S101 is a model that has been obtained after sample set training and can be used directly.
[0077] It should be understood that the input image in the embodiment of the present invention may be an image of any part of the human body, for example, a hand image, an arm image, an abdomen image, and the like.
[0078] Mainstream Chinese medicine believes that the internal organs reflex zones on the palms are consistent with the standard postures of human physiological anatomy. The positions of the hand reflex zones correspond to the chest, abdomen and pelvic cavities of the human body, respectively, and can treat various diseases involving the respiratory system, digestive system, circulatory system, nervous system, motor system, endocrine system, urinary system, reproductive system, as well as gynecological diseases, ENT diseases and skin diseases. Therefore, in a specific embodiment of the present invention, the input image is a hand image to determine the hand acupuncture point reflex zones.
[0079] In a specific embodiment of the present invention, the names of the hand acupuncture point reflexology areas and their therapeutic effects are shown in Table 1:
[0080] Table 1 Reflexology of hand acupuncture points and their therapeutic effects
[0081]
[0082] When the input image is a hand image, the acupoint reflexology area determination model in step S101 can be trained using the open source 11k Hands dataset. The specific training process is as follows: 1,000 left palm images of men and women of all ages are selected from the 11k Hands dataset. Among them, 800 images are used as training sets for training the model; 100 images are used as validation sets for verifying the performance of the model during the training process; and another 100 images are used as test sets for evaluating the generalization ability of the model after the model training is completed.
[0083] Before model training, these 1,000 images need to be manually annotated. The purpose of annotation is to determine the target features in the image so that the model can acquire the ability of target semantic segmentation by learning these annotated data. Specifically, the Labelme tool is used for data annotation. Labelme is a user-friendly image annotation tool that allows users to draw polygons, lines and other shapes on images to annotate targets of interest. After the annotation is completed, Labelme will generate a JSON file that contains annotation information, such as label name, label location coordinates, etc., for model training.
[0084] Compared with the prior art, the acupoint reflexology area determination method provided in the embodiment of the present invention extracts features from the input image by setting an initial feature extraction module to obtain high-resolution features and low-resolution features, and then respectively performs attention learning on the low-resolution features and the high-resolution features through the first joint attention module and the second joint attention module, and finally fuses the features after attention learning through the output module to achieve the determination of the acupoint reflexology area. Compared with the method of only extracting features from low-resolution features to obtain acupoint reflexology areas in the prior art, the present invention simultaneously performs attention learning and fusion on low-resolution features and high-resolution features, and can fuse information at different levels, thereby improving the accuracy of acupoint reflexology areas.
[0085] Furthermore, the embodiment of the present invention sets a first joint attention module and a second joint attention module to perform attention learning on features, so that the learned features include richer and more detailed feature information, improves the representation ability of the features, and further improves the accuracy of the acupoint reflex areas.
[0086] Furthermore, the embodiment of the present invention performs a dilated convolution on the first attention feature by setting a dilated feature extraction module, and the dilated convolution uses dilated convolutions with different dilation rates to obtain feature information at different scales. The dilation rate determines the dilation interval in the convolution kernel, which can affect the size of the receptive field. In turn, feature representations at different scales can be obtained, further improving the accuracy of acupoint reflex areas.
[0087] In some embodiments of the present invention, the initial feature extraction module includes at least two downsampling layers, and the context information of the input image is captured through the at least two downsampling layers. The initial feature extraction module obtains high-resolution features through the first downsampling layer, and finally obtains a low-resolution image after passing through all downsampling layers.
[0088] As the number of downsampling increases, the resolution of the feature map decreases, but the field of view of the feature map and the scale of the feature increase. In order to take into account both the resolution and the number of feature scales, in a specific embodiment of the present invention, Figure 2 As shown, the at least two downsampling layers include a first downsampling layer, a second downsampling layer, a third downsampling layer and a fourth downsampling layer, then Figure 3 As shown, step S102 includes:
[0089] S301, extracting features from the input image based on the first downsampling layer to obtain high-resolution features;
[0090] S302: Extract high-resolution features in sequence based on the second downsampling layer, the third downsampling layer, and the fourth downsampling layer to obtain low-resolution features.
[0091] Specifically, the resolution of the high-resolution features is 1 / 4 of the input image resolution, the resolution of the output features of the second downsampling layer is 1 / 8 of the resolution of the high-resolution features, the resolution of the output features of the third downsampling layer is 1 / 16 of the resolution of the output features of the second downsampling layer, and the resolution of the output features of the fourth downsampling layer is 1 / 16 of the resolution of the output features of the third downsampling layer.
[0092] In some embodiments of the present invention, Figure 4 As shown, the first joint attention module includes a spatial attention unit, a compressed channel attention unit, and a fusion unit; Figure 5 As shown, step S103 includes:
[0093] S501, performing spatial attention learning on low-resolution features based on the spatial attention unit to obtain spatial attention features;
[0094] S502, performing compressed channel attention learning on the low-resolution features based on the compressed channel attention unit to obtain compressed channel attention features;
[0095] S503. Based on the fusion unit, the spatial attention feature and the compressed channel attention feature are fused to obtain a first attention feature.
[0096] The fusion process in step S503 is specifically as follows: element-by-element addition of the spatial attention feature and the compressed channel attention feature to obtain the first attention feature.
[0097] The embodiment of the present invention sets two attention units of different dimensions, namely the spatial attention unit and the compressed channel attention unit. The spatial attention unit can use the spatial transformation module to transfer the spatial information in the original image to a new spatial dimension while retaining the key spatial information. By focusing on the task-related areas, the performance and processing effect of the model are improved. Such a mechanism enables the model to more effectively identify important elements in the image and reduce attention to irrelevant areas. The compressed channel attention unit mainly achieves selective enhancement of features by weighting the feature map in the convolutional neural network in the channel dimension, thereby improving the performance of the network and achieving accurate image segmentation.
[0098] Furthermore, the compressed channel attention unit provided in the embodiment of the present invention increases the nonlinearity of the features compared to the common channel attention unit, thereby being able to effectively capture the complex relationship between channels, thereby further improving the accuracy of the acupoint reflex area.
[0099] In a specific embodiment of the present invention, Figure 4As shown, the spatial attention unit includes a parallel first spatial convolution layer, a second spatial convolution layer and a third spatial convolution layer, a spatial activation function layer, a fourth spatial convolution layer and a spatial splicing layer, then step S501 is specifically: based on the first spatial convolution layer, the second spatial convolution layer and the third spatial convolution layer, respectively convolution processing is performed on the low-resolution features to obtain the first spatial feature map, the second spatial feature map and the third spatial feature map correspondingly, the first spatial feature map is transposed and multiplied with the second spatial feature map, and then the multiplied feature map is input into the spatial activation function layer for processing to obtain the spatial attention map, and then the spatial attention map is transposed, and the transposed spatial attention map is multiplied with the third spatial feature map to obtain the multiplied feature map, and then the multiplied feature map is convolved based on the fourth spatial convolution layer to obtain the convolution processing map, and finally the convolution processing map and the low-resolution feature map are element-by-element summed based on the spatial splicing layer to obtain the spatial attention feature.
[0100] Among them, the activation function of the spatial activation function layer is sigmoid.
[0101] In a specific embodiment of the present invention, Figure 4 As shown, the compressed channel attention unit includes the first channel convolution layer, the global pooling layer, the first channel convolution layer, the second activation function layer and the second channel convolution layer; Figure 6 As shown, step S502 includes:
[0102] S601, performing dimensionality reduction processing on the low-resolution features based on the first channel convolution layer to obtain dimensionality reduction features;
[0103] S602, performing global context information extraction processing on the dimension reduction features based on the global pooling layer to obtain context features;
[0104] S603, performing nonlinear feature extraction on the context feature based on the first activation function layer to obtain a first nonlinear feature;
[0105] S604, performing secondary nonlinear feature extraction based on the second activation function layer and the first nonlinear feature to obtain a second nonlinear feature;
[0106] S605, performing dot product processing on the second nonlinear feature and the low-resolution feature to obtain a dot product feature;
[0107] S606. Perform convolution processing on the point product features based on the second channel convolution layer to obtain compressed channel attention features.
[0108] The embodiment of the present invention performs nonlinear feature extraction by setting a first activation function layer and a second activation function layer, which can further capture the complex relationship between channels and improve the accuracy of the importance of different channels, that is, further improve the accuracy of the compressed channel attention feature.
[0109] Specifically, the activation function of the first activation function layer is relu, and the activation function of the second activation function layer is sigmoid.
[0110] In some embodiments of the present invention, Figure 2 As shown in the figure, the hole feature extraction module includes the first convolution layer, four hole convolution layers, a pooling layer and a hole splicing layer. The expansion rates of the four hole convolution layers are 3, 7, 12, and 16 respectively.
[0111] Among them, three dilated convolution layers are set in the dilated feature extraction module in the traditional DeeplabV3 model, and their expansion rates are 6, 12, and 18 respectively. However, since the dilated feature extraction module in the embodiment of the present invention further extracts features from low-resolution features, the larger expansion rate in the prior art will lead to technical problems such as inaccurate segmentation and determination of acupoint reflexology areas in small areas. In order to solve this technical problem, the embodiment of the present invention proposes to set four dilated convolution layers with expansion rates of 3, 7, 12, and 16 respectively. Using dilated convolution with a smaller expansion rate can better extract the features of low-resolution feature maps, thereby further improving the accuracy of acupoint reflexology areas.
[0112] Based on the above hole feature extraction module, Figure 7 As shown, step S104 includes:
[0113] S701, performing convolution processing on the first attention feature based on the first convolution layer to obtain a first feature;
[0114] S702, performing dilated convolution processing on the first attention feature based on four dilated convolution layers respectively to obtain four second features;
[0115] S703, performing pooling processing on the first attention feature based on the pooling layer to obtain a pooling feature;
[0116] S704. Based on the hole concatenation layer, the first feature, the four second features and the pooling feature are concatenated to obtain a hole convolution feature.
[0117] It should be understood that the structure and workflow of the second joint attention module are exactly the same as those of the first joint attention module, and will not be elaborated here.
[0118] In some embodiments of the present invention, Figure 2As shown, the output module includes a first output convolution layer, a second output convolution layer, a first upsampling layer, a splicing layer, a third output convolution layer and a second upsampling layer. The first output convolution layer performs convolution processing on the hole convolution feature, and upsamples the feature after convolution processing of the first output convolution layer based on the first upsampling layer to obtain the upsampled feature, the second output convolution layer performs convolution processing on the second attention feature, splices the upsampled feature and the second attention feature after convolution processing based on the splicing layer to obtain the splicing feature, the third output convolution layer performs convolution processing on the splicing feature, and then the second upsampling layer upsamples the splicing feature after convolution processing to obtain multiple acupoint reflex areas.
[0119] Since the hand acupuncture point reflexology areas, such as the ear pharynx area, the palm area, and the palm area, are relatively small compared to other acupuncture point reflexology areas, they are more difficult to segment. To ensure the accurate segmentation of these acupuncture point reflexology areas, in some embodiments of the present invention, the loss function used in the training of the acupuncture point reflexology area determination model is:
[0120]
[0121] In the formula, is the loss value; t is the category of the current sample; For Category t The corresponding weights; Output probability distribution for category t The probability value of is an adjustable focus parameter.
[0122] The embodiment of the present invention can adjust the loss weight when facing acupoint reflex areas with different segmentation difficulties due to different area sizes by adjusting the focusing parameters of the above-mentioned loss function, which helps to more effectively avoid the problem of different sample segmentation difficulties, and thus achieve accurate segmentation and determination of all acupoint reflex areas.
[0123] The effectiveness and superiority of the acupoint reflexology area determination model proposed in the embodiment of the present invention have not been verified, and the model has been verified based on an evaluation index, wherein the evaluation index is Mean Intersection over Union (MIoU).
[0124] In order to comprehensively evaluate the specific impact of the joint attention module, the hole feature extraction module and the loss function on the model performance, a series of ablation experiments were designed in the embodiment of the present invention. In these experiments, the hole feature extraction module, the joint attention module or the loss function were removed respectively, and the impact of these changes on the overall segmentation effect of the model was observed. In this way, the contribution of each component to the model performance can be quantitatively analyzed, and their effectiveness in improving the acupoint reflex area can be verified. The specific experimental results are shown in Table 2 below.
[0125] Table 2 Ablation experiments of acupoint reflex zones
[0126]
[0127] It can be seen from Table 2 that when the traditional Deeplabv3+ network structure is used, the MIoU is 69.21%; when the hole feature extraction module and the joint attention model are not set and only replaced by the loss function in the embodiment of the present invention, the MIoU is 69.86%; when only the joint attention module is set, the hole feature extraction module is not set, and the loss function uses the traditional softmax loss function, the MIoU is 71.52%; when the hole feature extraction module and the joint attention module are set at the same time, but the loss function is the traditional softmax loss function, the MIoU is 72.07%; when it is the setting in the embodiment of the present invention, that is, when the first joint attention module, the hole feature extraction module and the loss function are set, the MIoU is 73.47%.
[0128] It can be seen from the above description that compared with the traditional Deeplabv3+ network structure, the segmentation performance of the embodiment of the present invention is improved, and the MIoU is increased by 4.26%, which fully proves the effectiveness of the acupoint reflex area determination model in the embodiment of the present invention in recognizing small targets, that is, the effectiveness of acupoint reflex area recognition.
[0129] To further ensure the accuracy of acupoint reflection areas, in some embodiments of the present invention, Figure 8 As shown, after step S106, the following further includes:
[0130] S801, acquiring multiple key acupoints of an input image, and determining actual key acupoints in an acupoint reflexology area based on the multiple key acupoints;
[0131] S802, determining theoretical key acupoints in each acupoint reflexology zone based on the theoretical correlation between key acupoints and acupoint reflexology zones;
[0132] S803. Verify the accuracy of the acupoint reflexology area based on the theoretical key acupoints and the actual key acupoints.
[0133] The embodiment of the present invention verifies the accuracy of the identified acupoint reflexology area through key acupoints, which can further ensure the accuracy of the determined acupoint reflexology area.
[0134] Among them, step S801 is specifically: based on the MediaPipe key point detection algorithm, multiple key acupoints of the input image are obtained, and the key acupoints include but are not limited to Daling, Yuji, Shaoshang, Xiaochang, Dachang, Laogong, Sanjiao, Xinxue, Zhongchong, Ganxue, Feixue, Shaofu, Mingmen, Shenxue, Taiyuan, Shenmen, etc. The key acupoints and the acupoint reflex areas determined by steps S101 to S106 are marked on the input image, and the actual key acupoints in each acupoint reflex area are determined after marking.
[0135] The theoretical key acupoints of step S802 are the key acupoints that should be located in the acupoint reflexology area in theory. For example, when the acupoint reflexology area is the thoracic respiratory area, the theoretical key acupoints are Shaoshang, Taiyuan and Yuji.
[0136] Step S803 is specifically as follows: if the number and / or positions of the actual key acupoints are different from those of the theoretical key acupoints, it means that the accuracy of the acupoint reflex areas does not meet the requirements, and the acupoint reflex area determination model is retrained; if they are the same, it means that the acupoint reflex areas are more accurate, that is, the acupoint reflex area determination model does not need to be further or retrained, and the acupoint reflex areas of subsequent input images can be directly identified and determined.
[0137] In order to better implement the acupoint reflex zone determination method in the embodiment of the present invention, based on the acupoint reflex zone determination method, the embodiment of the present invention also provides an acupoint reflex zone determination device, such as Fig. 9 As shown, the acupoint reflection zone determination device 900 includes:
[0138] A model acquisition unit 901 is used to acquire an acupoint reflexology area determination model, wherein the acupoint reflexology area determination model includes an initial feature extraction module, a first joint attention module, a hole feature extraction module, a second joint attention module, and an output module;
[0139] An initial feature extraction unit 902 is used to extract features from the input image based on the initial feature extraction module to obtain high-resolution features and low-resolution features;
[0140] A first attention learning unit 903, configured to perform attention learning on the low-resolution feature based on the first joint attention module to obtain a first attention feature;
[0141] A dilated convolution feature extraction unit 904, configured to perform dilated convolution on the first attention feature based on the dilated feature extraction module to obtain a dilated convolution feature;
[0142] A second attention learning unit 905, configured to perform attention learning on the high-resolution feature based on the second joint attention module to obtain a second attention feature;
[0143] The acupoint reflexology area determination unit 906 is used to fuse the hole convolution feature and the second attention feature based on the output module to obtain multiple acupoint reflexology areas.
[0144] The acupoint reflex zone determination device 900 provided in the above embodiment can implement the technical solution described in the above acupoint reflex zone determination method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above acupoint reflex zone determination method embodiment, which will not be repeated here.
[0145] like Fig.10 As shown, the present invention also provides an acupuncture robot 1000. The acupuncture robot 1000 includes a processor 1001, a memory 1002 and a display 1003. Fig.10 Only some of the components of the acupuncture robot 1000 are shown, but it should be understood that it is not required to implement all of the shown components, and more or fewer components may be implemented instead.
[0146] In some embodiments, the memory 1002 may be an internal storage unit of the acupuncture robot 1000, such as a hard disk or memory of the acupuncture robot 1000. In other embodiments, the memory 1002 may also be an external storage device of the acupuncture robot 1000, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the acupuncture robot 1000.
[0147] Furthermore, the memory 1002 may include both an internal storage unit of the acupuncture robot 1000 and an external storage device. The memory 1002 is used to store application software installed in the acupuncture robot 1000 and various data.
[0148] In some embodiments, the processor 1001 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 1002, such as the acupoint reflexology zone determination method of the present invention.
[0149] In some embodiments, the display 1003 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 1003 is used to display information of the acupuncture robot 1000 and to display a visual user interface. The components 1001-1003 of the acupuncture robot 1000 communicate with each other via a system bus.
[0150] In some embodiments of the present invention, when the processor 1001 executes the acupoint reflexology zone determination program in the memory 1002, the following steps may be implemented:
[0151] Acquire an acupoint reflexology area determination model, the acupoint reflexology area determination model comprising an initial feature extraction module, a first joint attention module, a hole feature extraction module, a second joint attention module and an output module;
[0152] Extract features from the input image based on the initial feature extraction module to obtain high-resolution features and low-resolution features;
[0153] Performing attention learning on the low-resolution features based on the first joint attention module to obtain a first attention feature;
[0154] Based on the hole feature extraction module, a hole convolution is performed on the first attention feature to obtain a hole convolution feature;
[0155] Based on the second joint attention module, attention learning is performed on the high-resolution features to obtain the second attention features;
[0156] Based on the output module, the hole convolution features and the second attention features are fused to obtain multiple acupoint reflex areas.
[0157] It should be understood that: when the processor 1001 executes the acupoint reflexology area determination program in the memory 1002, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the previous related method embodiments.
[0158] Correspondingly, an embodiment of the present invention also provides a computer-readable storage medium, which is used to store computer-readable programs or instructions. When the program or instructions are executed by a processor, the steps or functions of the acupoint reflex zone determination method provided in the above-mentioned method embodiments can be implemented.
[0159] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0160] The acupoint reflex zone determination method, device, acupuncture robot and storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for determining acupoint reflex zones, It is characterized in that include: Acquire an acupoint reflexology area determination model, the acupoint reflexology area determination model comprising an initial feature extraction module, a first joint attention module, a hole feature extraction module, a second joint attention module and an output module; Extract features from the input image based on the initial feature extraction module to obtain high-resolution features and low-resolution features; Performing attention learning on the low-resolution features based on the first joint attention module to obtain a first attention feature; Based on the hole feature extraction module, a hole convolution is performed on the first attention feature to obtain a hole convolution feature; Based on the second joint attention module, attention learning is performed on the high-resolution features to obtain the second attention features; Based on the output module, the hole convolution feature and the second attention feature are fused to obtain multiple acupoint reflex areas; The first joint attention module includes a spatial attention unit, a compressed channel attention unit, and a fusion unit; The step of performing attention learning on the low-resolution feature based on the first joint attention module to obtain the first attention feature includes: Performing spatial attention learning on the low-resolution feature based on the spatial attention unit to obtain a spatial attention feature; Based on the compressed channel attention unit, compressed channel attention learning is performed on the low-resolution feature to obtain a compressed channel attention feature; Based on the fusion unit, the spatial attention feature and the compressed channel attention feature are fused to obtain the first attention feature; The compressed channel attention unit includes a first channel convolution layer, a global pooling layer, a first activation function layer, a second activation function layer and a second channel convolution layer; based on the compressed channel attention unit, the low-resolution feature is subjected to compressed channel attention learning to obtain a compressed channel attention feature, including: Performing dimensionality reduction processing on the low-resolution features based on the first channel convolution layer to obtain dimensionality reduction features; Performing global context information extraction processing on the dimension reduction features based on the global pooling layer to obtain context features; Performing nonlinear feature extraction on the context feature based on the first activation function layer to obtain a first nonlinear feature; Perform secondary nonlinear feature extraction based on the second activation function layer and the first nonlinear feature to obtain a second nonlinear feature; Performing a dot product process on the second nonlinear feature and the low-resolution feature to obtain a dot product feature; Performing convolution processing on the point product feature based on the second channel convolution layer to obtain the compressed channel attention feature; The output module includes a first output convolution layer, a second output convolution layer, a first upsampling layer, a splicing layer, a third output convolution layer and a second upsampling layer; the first output convolution layer performs convolution processing on the hole convolution feature, and upsamples the feature after convolution processing by the first output convolution layer based on the first upsampling layer to obtain the upsampled feature, the second output convolution layer performs convolution processing on the second attention feature, and splices the upsampled feature and the second attention feature after convolution processing based on the splicing layer to obtain the splicing feature, the third output convolution layer performs convolution processing on the splicing feature, and the second upsampling layer upsamples the splicing feature after convolution processing to obtain multiple acupoint reflex areas.
2. The method for determining acupoint reflex zones according to claim 1, It is characterized in that The initial feature extraction module includes at least two downsampling layers, the at least two first downsampling layers include a first downsampling layer and a second downsampling layer, and the feature extraction of the input image based on the initial feature extraction module to obtain high-resolution features and low-resolution features includes: Performing feature extraction on the input image based on the first downsampling layer to obtain the high-resolution feature; Feature extraction is performed on the high-resolution feature based on the second down-sampling layer to obtain the low-resolution feature.
3. The method for determining acupoint reflex zones according to claim 1, It is characterized in that The hole feature extraction module includes a first convolution layer, four hole convolution layers, a pooling layer and a hole splicing layer, and the expansion rates of the four hole convolution layers are 3, 7, 12, and 16 respectively; the hole feature extraction module performs hole convolution on the first attention feature to obtain the hole convolution feature, including: Performing convolution processing on the first attention feature based on the first convolution layer to obtain a first feature; Based on the four dilated convolution layers, respectively perform dilated convolution processing on the first attention features to obtain four second features; Performing pooling processing on the first attention feature based on the pooling layer to obtain a pooling feature; The first feature, four of the second features, and the pooling feature are spliced based on the hole splicing layer to obtain the hole convolution feature.
4. The method for determining acupoint reflex zones according to claim 1, It is characterized in that The loss function used in the training of the acupoint reflexology area determination model is: In the formula, is the loss value; t is the category of the current sample; For Category t The corresponding weights; Output probability distribution for category t The probability value of is an adjustable focus parameter.
5. The method for determining acupoint reflex zones according to claim 1, It is characterized in that The acupoint reflection area determination method further comprises: Acquire a plurality of key acupoints of the input image, and determine actual key acupoints in the acupoint reflexology area based on the plurality of key acupoints; Based on the theoretical correlation between the key acupoints and the acupoint reflexology areas, determining the theoretical key acupoints in each acupoint reflexology area; The accuracy of the acupoint reflexology zone is verified based on the theoretical key acupoints and the actual key acupoints.
6. A device for determining acupoint reflex zones, It is characterized in that include: A model acquisition unit, used to acquire an acupoint reflexology area determination model, wherein the acupoint reflexology area determination model includes an initial feature extraction module, a first joint attention module, a hole feature extraction module, a second joint attention module, and an output module; An initial feature extraction unit, used to extract features from the input image based on the initial feature extraction module to obtain high-resolution features and low-resolution features; A first attention learning unit, configured to perform attention learning on the low-resolution feature based on the first joint attention module to obtain a first attention feature; A dilated convolution feature extraction unit, configured to perform dilated convolution on the first attention feature based on the dilated feature extraction module to obtain a dilated convolution feature; A second attention learning unit, configured to perform attention learning on the high-resolution feature based on the second joint attention module to obtain a second attention feature; An acupoint reflexology area determination unit, used for fusing the hole convolution feature and the second attention feature based on the output module to obtain multiple acupoint reflexology areas; The first joint attention module includes a spatial attention unit, a compressed channel attention unit, and a fusion unit; The step of performing attention learning on the low-resolution feature based on the first joint attention module to obtain the first attention feature includes: Performing spatial attention learning on the low-resolution feature based on the spatial attention unit to obtain a spatial attention feature; Based on the compressed channel attention unit, compressed channel attention learning is performed on the low-resolution feature to obtain a compressed channel attention feature; Based on the fusion unit, the spatial attention feature and the compressed channel attention feature are fused to obtain the first attention feature; The compressed channel attention unit includes a first channel convolution layer, a global pooling layer, a first activation function layer, a second activation function layer and a second channel convolution layer; based on the compressed channel attention unit, the low-resolution feature is subjected to compressed channel attention learning to obtain a compressed channel attention feature, including: Performing dimensionality reduction processing on the low-resolution features based on the first channel convolution layer to obtain dimensionality reduction features; Performing global context information extraction processing on the dimension reduction features based on the global pooling layer to obtain context features; Performing nonlinear feature extraction on the context feature based on the first activation function layer to obtain a first nonlinear feature; Perform secondary nonlinear feature extraction based on the second activation function layer and the first nonlinear feature to obtain a second nonlinear feature; Performing a dot product process on the second nonlinear feature and the low-resolution feature to obtain a dot product feature; Performing convolution processing on the point product feature based on the second channel convolution layer to obtain the compressed channel attention feature; The output module includes a first output convolution layer, a second output convolution layer, a first upsampling layer, a splicing layer, a third output convolution layer and a second upsampling layer; the first output convolution layer performs convolution processing on the hole convolution feature, and upsamples the feature after convolution processing by the first output convolution layer based on the first upsampling layer to obtain the upsampled feature, the second output convolution layer performs convolution processing on the second attention feature, and splices the upsampled feature and the second attention feature after convolution processing based on the splicing layer to obtain the splicing feature, the third output convolution layer performs convolution processing on the splicing feature, and the second upsampling layer upsamples the splicing feature after convolution processing to obtain multiple acupoint reflex areas.
7. An acupuncture robot, It is characterized in that comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the acupoint reflexology area determination method described in any one of claims 1 to 5 above.
8. A computer-readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps in the acupoint reflexology area determination method described in any one of claims 1 to 5 are implemented.
