Method and device for locating acupuncture points on the side of the head, acupuncture robot and storage medium
Through deep learning model identification and curve fitting to correct acupuncture points, it solves the problem of low accuracy of acupoint positioning on the side of the head, improves efficiency and accuracy, and reduces the burden on doctors.
Patent Information
- Application Number
- CN202410776344.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-17
AI Technical Summary
In the existing technology, the accuracy of positioning acupuncture points on the side of the head is low, relies on the experience of doctors, is inefficient and suffers from personal subjectivity.
By training the target acupuncture point recognition model based on the acupuncture point sample set on the side of the head, using the deep learning model to identify acupoint points, and correcting the acupoint points through fitting curves, the accuracy and efficiency of acupoint positioning are improved.
It reduces the burden on doctors, improves the identification efficiency and positioning accuracy of acupoints on the side of the head, ensures the accuracy of acupoints, and reduces dependence on the doctor's experience.
Smart Images

Figure CN118340664B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of acupoint identification, and specifically to a method and device for locating acupoints on the side of the head, an acupuncture robot and a storage medium. Background Art
[0002] There are 9 meridians in the human head, namely the Stomach Meridian of Foot Yangming, the Gallbladder Meridian of Foot Shaoyang, the Bladder Meridian of Foot Taiyang, the Large Intestine Meridian of Hand Yangming, the Triple Burner Meridian of Hand Shaoyang, the Small Intestine Meridian of Hand Taiyang, the Conception Meridian, the Governor Meridian and the Liver Meridian of Foot Jueyin. There are also many acupuncture points on the head, including Yangbai Point, Xuanlu Point, Qubin Point, Jiaosun Point, Luxi Point, Benshen Point, Toulinqi Point, Chenglin Point, Naokong Point, Hanyan Point, Shangguan Point, etc. Acupuncture points on the side of the head are widely used in health care and medical treatment, and different acupuncture points have different effects. Among them, the acupuncture points on the side of the head are of great significance and effect in health care and medical treatment.
[0003] At present, the identification and location of acupuncture points on the side of the head mainly rely on the experience and skills accumulated by traditional Chinese medicine practitioners over a long period of time. The physician manually analyzes the patient's head characteristics and combines the theoretical knowledge of the direction and distribution of meridians in the head to roughly determine the location of the acupuncture points on the head. However, this traditional method has problems such as strong personal subjectivity, different doctors' different judgments on the same patient, and inconsistent acupuncture point location results. In addition, determining acupuncture points requires a lot of time and energy, is inefficient, and requires a high level of experience from traditional Chinese medicine practitioners.
[0004] There is an urgent need to provide a method, device, acupuncture robot and storage medium for locating acupoints on the side of the head to improve the accuracy and efficiency of locating acupoints on the side of the head, assist doctors in diagnosing patients' conditions and reduce the burden on doctors. Summary of the invention
[0005] In view of this, it is necessary to provide a method, device, acupuncture robot and storage medium for locating acupoints on the side of the head to solve the technical problem of low accuracy in locating acupoints on the side of the head in the prior art.
[0006] On the one hand, in order to solve the above technical problems, the present invention provides a method for locating acupoints on the side of the head, comprising:
[0007] Training an acupoint recognition model based on a sample set of acupoints on the side of the head to obtain a target acupoint recognition model; the sample set of acupoints on the side of the head includes a plurality of acupoint sample points and a plurality of supporting sample points located on the curve of the foot-shaoyang gallbladder meridian;
[0008] Inputting the side image of the head to be identified into the target acupoint recognition model to obtain multiple acupoints and multiple support points;
[0009] Fitting the multiple acupuncture points and the multiple supporting points to obtain a fitting curve;
[0010] Based on the fitting curve, it is determined whether the acupuncture point needs correction. If correction is needed, the acupuncture point is corrected based on the fitting curve to obtain the target acupuncture point.
[0011] In a possible implementation, before training the acupoint recognition model based on the acupoint sample set on the side of the head, the method further includes:
[0012] Acquire multiple sample images of the side of the head, and determine the curve of the Gallbladder Meridian of Foot Shaoyang in each of the sample images of the side of the head;
[0013] Marking acupuncture points based on the foot-shaoyang gallbladder meridian curve to obtain multiple acupuncture point sample points;
[0014] Segmenting the Gallbladder Meridian of Foot Shaoyang curve based on the inflection points of the Gallbladder Meridian of Foot Shaoyang curve to obtain multiple Gallbladder Meridian of Foot Shaoyang sub-curves;
[0015] At least one supporting sample point inserted into the foot Shaoyang Gallbladder Meridian sub-curve is determined based on the number of acupoint sample points in each section of the foot Shaoyang Gallbladder Meridian sub-curve and the curve characteristics.
[0016] In a possible implementation, the curve characteristics include a curvature change rate and a curve length; then the step of inserting at least one supporting sample point on the Shaoyang Gallbladder Meridian sub-curve based on the number of acupoint sample points in each section of the Shaoyang Gallbladder Meridian sub-curve and the curve characteristics of each section of the Shaoyang Gallbladder Meridian sub-curve includes:
[0017] When the curvature change rate of the foot Shaoyang Gallbladder Meridian sub-curve is less than or equal to a first threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang Gallbladder Meridian sub-curve is the first threshold number, and the target number of supporting sample points inserted into the foot Shaoyang Gallbladder Meridian sub-curve is determined based on the first threshold number and the number of acupoint sample points;
[0018] When the curvature change rate of the foot Shaoyang gallbladder meridian sub-curve is greater than a first threshold value, and the curve length of the foot Shaoyang gallbladder meridian sub-curve pair is less than or equal to a length threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang gallbladder meridian sub-curve is a second threshold number, and a target number of supporting sample points to be inserted into the foot Shaoyang gallbladder meridian sub-curve is determined based on the second threshold number and the number of acupoint sample points;
[0019] When the curvature change rate of the foot Shaoyang gallbladder meridian sub-curve is greater than a first threshold value, and the curve length of the foot Shaoyang gallbladder meridian sub-curve pair is greater than a length threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang gallbladder meridian sub-curve is a third threshold number, and a target number of supporting sample points to be inserted into the foot Shaoyang gallbladder meridian sub-curve is determined based on the third threshold number and the number of acupoint sample points;
[0020] Inserting the target number of supporting sample points onto the sub-curve of the Gallbladder Meridian of Foot Shaoyang;
[0021] Among them, the first threshold number is smaller than the second threshold number, and the second threshold number is smaller than the third threshold number.
[0022] In a possible implementation, fitting the multiple acupuncture points and the multiple supporting points to obtain a fitting curve includes:
[0023] A plurality of curve segments are determined based on the plurality of acupuncture points and the plurality of supporting points. The curve segments are gentle curve segments or circular curve segments. Each of the curve segments includes at least one of the acupuncture points and at least one of the supporting points.
[0024] In a possible implementation, determining whether the acupoint needs correction based on the fitting curve includes:
[0025] Determine whether the distance between each of the acupuncture points and the fitting curve is greater than zero and less than a distance threshold;
[0026] When the distance between each acupoint and the fitting curve is zero, the acupoint does not need to be corrected;
[0027] When the distance between each acupoint and the fitting curve is greater than or equal to a distance threshold, the acupoint is eliminated;
[0028] When the distance between each acupoint and the fitting curve is greater than zero and less than a distance threshold, the acupoint needs to be corrected.
[0029] In a possible implementation, the correcting the acupuncture point based on the fitting curve to obtain the target acupuncture point includes:
[0030] Obtaining a tangent line of the fitting curve, and taking a direction perpendicular to the tangent line and pointing to the fitting curve as a moving direction of the acupuncture point;
[0031] The distance between the acupuncture point and the fitting curve is used as the moving distance, and the acupuncture point is controlled to move along the moving direction by the moving distance to obtain the target acupuncture point.
[0032] In a possible implementation, the head side acupoint sample set includes multiple head side sample images of different people, multiple head side sample images of the same person at different angles and at the same distance, and multiple head side sample images of the same person at the same angle and at different distances.
[0033] On the other hand, the present invention also provides a head side acupuncture point positioning device, comprising:
[0034] A model training unit, used for training an acupoint recognition model based on a sample set of acupoints on the side of the head to obtain a target acupoint recognition model; the sample set of acupoints on the side of the head includes a plurality of acupoint sample points and at least one supporting sample point located on the curve of the foot-shaoyang gallbladder meridian;
[0035] An image recognition unit to be recognized, used for inputting the side image of the head to be recognized into the target acupoint recognition model to obtain a plurality of acupoints and a plurality of supporting points;
[0036] A curve fitting unit, used for fitting the plurality of acupoints and the plurality of support points to obtain a fitting curve;
[0037] The acupuncture point positioning unit is used to determine whether the acupuncture point needs to be corrected based on the fitting curve, and when correction is needed, correct the acupuncture point based on the fitting curve to obtain the target acupuncture point.
[0038] On the other hand, the present invention also provides an acupuncture robot, comprising a memory and a processor, wherein:
[0039] The memory is used to store programs;
[0040] The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the method for locating acupuncture points on the side of the head described in any one of the possible implementations above.
[0041] 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 of the method for locating acupoints on the side of the head described in any possible implementation method mentioned above are implemented.
[0042] The beneficial effects of the present invention are as follows: the method for locating acupoints on the side of the head provided by the present invention can reduce the burden on doctors and improve the efficiency of identifying acupoints on the side of the head by identifying acupoints through a deep learning model, which is a target acupoint recognition model. In addition, the sample set of acupoints on the side of the head in the present invention includes a plurality of acupoint sample points and a plurality of supporting sample points located on the curve of the foot-shaoyang gallbladder meridian, that is, the constrained acupoint sample points are located on the curve of the foot-shaoyang gallbladder meridian, which can ensure the accuracy of acupoints in the acupoint sample on the side of the head, and further improve the accuracy of acupoints identified based on the target acupoint recognition model, that is, improve the positioning accuracy of acupoints on the side of the head.
[0043] Furthermore, the present invention is also provided with fitting the identified multiple acupoints and multiple support points to obtain a fitting curve, and the acupoints that need to be corrected are corrected based on the fitting curve, thereby further improving the accuracy of the determined target acupoints, that is, further improving the positioning accuracy of the head acupoints. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] 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.
[0045] Figure 1 A schematic diagram of a flow chart of an embodiment of a method for locating acupuncture points on the side of the head provided by the present invention;
[0046] Figure 2 A schematic diagram of an embodiment of generating a sample set of acupuncture points on the side of the head provided by the present invention;
[0047] Figure 3 A schematic diagram of an embodiment of a sample of acupuncture points on the side of the head provided by the present invention;
[0048] Figure 4 For the present invention Figure 2 A schematic flow chart of an embodiment of S204;
[0049] Figure 5 For the present invention Figure 1 A schematic diagram of an embodiment of determining whether an acupuncture point needs correction in step S104;
[0050] Figure 6 For the present invention Figure 1 A schematic diagram of an embodiment of the process of correcting the acupuncture points in step S104;
[0051] Figure 7 A schematic diagram of an embodiment of the present invention providing acupuncture points that need to be corrected;
[0052] Figure 8 A schematic diagram of the structure of an embodiment of the head side acupuncture point locating device provided by the present invention;
[0053] Fig. 9 This is a schematic structural diagram of an embodiment of the acupuncture robot provided by the present invention. DETAILED DESCRIPTION
[0054] 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.
[0055] 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.
[0056] 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.
[0057] The present invention provides a method and device for locating acupuncture points on the side of the head, an acupuncture robot and a storage medium, which are described below respectively.
[0058] Figure 1 A schematic diagram of an embodiment of the head side acupuncture point positioning method provided by the present invention is shown in FIG. Figure 1 As shown, the method of locating the acupoints on the side of the head includes:
[0059] S101, training an acupoint recognition model based on a sample set of acupoints on the side of the head to obtain a target acupoint recognition model; the sample set of acupoints on the side of the head includes a plurality of acupoint sample points and a plurality of supporting sample points located on the curve of the Gallbladder Meridian of Foot Shaoyang;
[0060] S102, inputting the side image of the head to be identified into the target acupoint recognition model to obtain multiple acupoints and multiple support points;
[0061] S103, fitting multiple acupoints and multiple support points to obtain a fitting curve;
[0062] S104, determining whether the acupuncture point needs correction based on the fitting curve, and if correction is needed, correcting the acupuncture point based on the fitting curve to obtain the target acupuncture point.
[0063] It should be understood that when an acupoint does not need to be corrected, the acupoint is a target acupoint.
[0064] Among them, the recognition model based on the sample set of acupuncture points on the side of the head in step S101 may include a training, testing and verification process. Specifically: the sample set of acupuncture points on the side of the head is divided into a training set, a test set and a verification set in a preset ratio, for example, a ratio of 8:1:1, and the acupuncture point recognition model is trained based on the training set. After the training is completed, the model performance of the trained acupuncture point recognition model is tested based on the test set. If the test passes, the acupuncture point recognition model is verified based on the verification set. After the verification passes, the target acupuncture point recognition model is obtained; if the test fails or the verification fails, the acupuncture point recognition model is re-trained based on the training set.
[0065] Specifically, the acupoint recognition model is YOLOv8, which is improved and innovated on the basis of YOLOv5 and YOLOv7. Anchor-Free is used instead of Anchor-Base, and the lightweight C2f module is used to replace the C3 module, which maintains the detection accuracy while reducing the computational load. In addition, YOLOv8 uses the SPPF module and PAN-FPN structure, and improves the loss function and matching strategy, further improving the detection performance and efficiency. The execution process of the YOLOv8 network structure is as follows: the input image is converted into a 640×640×3 RGB image and preprocessed by the CBS module, including mosaic enhancement, spatial perturbation, and color perturbation. The CBS module consists of convolution, normalization, and SiLU activation functions, which are used to extract texture and color information, solve the gradient disappearance and explosion problems, and improve nonlinear transformations. Next is the C2f module, which includes a downsampled convolution kernel and two branches, one of which is split and concat operations, and the other is the series-parallel output of three Bottleneck networks. Finally, the features of the two branches are superimposed to obtain the extracted feature results. The input and output channel sizes of the C2f layer are the same. Finally, the feature image is subjected to a maximum pooling operation with a convolution kernel of size 5×5 to extract features. In the Head layer, YOLOv8 draws on the decoupling head idea of YOLOX, separates the regression branch and the prediction branch, and extracts category features and position features respectively.
[0066] Compared with the prior art, the method for locating acupoints on the side of the head provided by the embodiment of the present invention can reduce the burden on doctors and improve the efficiency of identifying acupoints on the side of the head by identifying acupoints through a deep learning model, which is a target acupoint recognition model. In addition, the sample set of acupoints on the side of the head in the embodiment of the present invention includes a plurality of acupoint sample points and a plurality of supporting sample points located on the curve of the foot-shaoyang gallbladder meridian, that is, the constrained acupoint sample points are located on the curve of the foot-shaoyang gallbladder meridian, which can ensure the accuracy of acupoints in the acupoint sample on the side of the head, and further improve the accuracy of acupoints identified based on the target acupoint recognition model, that is, improve the positioning accuracy of acupoints on the side of the head.
[0067] Furthermore, the embodiment of the present invention is also provided for fitting the multiple identified acupoints and multiple support points to obtain a fitting curve, and the acupoints that need to be corrected are corrected based on the fitting curve, thereby further improving the accuracy of the determined target acupoints, that is, further improving the positioning accuracy of the head acupoints.
[0068] It should be noted that in order to improve the robustness of the target acupoint recognition model, that is, to achieve accurate recognition of the side head images to be identified obtained at any angle and any shooting distance, in some embodiments of the present invention, the side head acupoint sample set includes multiple side head sample images of different people, multiple side head sample images of the same person at the same distance at different angles, and multiple side head sample images of the same person at the same angle but different distances.
[0069] The embodiment of the present invention sets a head side acupoint sample set to include multiple head side sample images of different people, the same person at different angles, and the same angle at different distances, so that the acupoint recognition model can learn multiple samples, so that the obtained target acupoint recognition model can accurately recognize the head side image to be recognized at any angle and any distance, thereby improving the accuracy of the target acupoint recognition model.
[0070] Furthermore, the head side acupoint sample set may also include head side sample images under different hairstyles, head shapes, skin colors and lighting conditions, so as to further improve the robustness and recognition accuracy of the target acupoint recognition model.
[0071] Since the fitting curve needs to be fitted based on the acupuncture points and the supporting points, in order to improve the accuracy of the fitting curve and thus improve the positioning accuracy of the acupuncture points on the side of the head, it is necessary to ensure accurate marking of the acupuncture point sample points and the supporting sample points in the acupuncture point sample set on the side of the head. To achieve this goal, in some embodiments of the present invention, such as Figure 2 As shown, before step S101, it also includes:
[0072] S201, acquiring a plurality of sample images of the side face of the head, and determining a curve of the Gallbladder Meridian of Foot Shaoyang in each sample image of the side face of the head;
[0073] S202, marking acupuncture points based on the curve of the Gallbladder Meridian of Foot Shaoyang to obtain multiple acupuncture point sample points;
[0074] S203, segmenting the Gallbladder Meridian of Foot Shaoyang curve based on the inflection points of the Gallbladder Meridian of Foot Shaoyang curve to obtain multiple Gallbladder Meridian of Foot Shaoyang sub-curves;
[0075] S204: Determine at least one supporting sample point to be inserted into the sub-curve of the Gallbladder Meridian of Foot Shaoyang based on the number of acupoint sample points in each section of the sub-curve of the Gallbladder Meridian of Foot Shaoyang and the curve characteristics.
[0076] The specific method of labeling the acupuncture points in step S202 is: using the Labelme labeling tool to label multiple acupuncture point sample points on the curve of the Gallbladder Meridian of Foot Shaoyang.
[0077] In a specific embodiment of the present invention, Figure 3 As shown, the Foot Shaoyang Gallbladder Meridian curve includes 7 inflection points, which are circular points numbered 1, 2, 4, 7, 12, 14 and 20. Correspondingly, two adjacent inflection points constitute a Foot Shaoyang Gallbladder Meridian sub-curve, and the Foot Shaoyang Gallbladder Meridian sub-curve has a total of 6 segments.
[0078] The embodiment of the present invention labels acupuncture points based on the constraints of the foot-shaoyang gallbladder meridian curve, which can improve the accuracy of the acupuncture points on the side of the head identified by the trained target acupuncture point recognition model. In addition, the embodiment of the present invention determines the number of inserted support sample points based on the number of acupuncture point sample points and the curve characteristics, which can ensure the rationality of the inserted support sample points and avoid inserting too many or too few support sample points, thereby ensuring the accuracy of acupuncture point recognition and improving the efficiency of acupuncture point recognition.
[0079] In some embodiments of the present invention, the curve characteristics include the curvature change rate and the curve length. Figure 4 As shown, step S204 includes:
[0080] S401. When the curvature change rate of the sub-curve of the foot-Shaoyang Gallbladder Meridian is less than or equal to the first threshold value, the total number of supporting sample points and acupoint sample points on the sub-curve of the foot-Shaoyang Gallbladder Meridian is the first threshold value, and the target number of supporting sample points to be inserted into the sub-curve of the foot-Shaoyang Gallbladder Meridian is determined based on the first threshold value and the number of acupoint sample points;
[0081] S402: when the curvature change rate of the foot Shaoyang Gallbladder Meridian sub-curve is greater than the first threshold value, and the curve length of the foot Shaoyang Gallbladder Meridian sub-curve pair is less than or equal to the length threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang Gallbladder Meridian sub-curve is the second threshold number, and the target number of supporting sample points to be inserted into the foot Shaoyang Gallbladder Meridian sub-curve is determined based on the second threshold number and the number of acupoint sample points;
[0082] S403: when the curvature change rate of the foot Shaoyang gallbladder meridian sub-curve is greater than the first threshold value, and the curve length of the foot Shaoyang gallbladder meridian sub-curve pair is greater than the length threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang gallbladder meridian sub-curve is the third threshold number, and the target number of supporting sample points to be inserted into the foot Shaoyang gallbladder meridian sub-curve is determined based on the third threshold number and the number of acupoint sample points;
[0083] S404, inserting the target number of supporting sample points onto the sub-curve of the Gallbladder Meridian of Foot Shaoyang;
[0084] Among them, the first threshold number is smaller than the second threshold number, and the second threshold number is smaller than the third threshold number.
[0085] In a specific embodiment of the present invention, the first threshold number is 4, the second threshold number is 7, and the third threshold number is 9.
[0086] It should be understood that the first threshold, the length threshold, the number of first thresholds, the number of second thresholds and the number of third thresholds can be adjusted according to actual application scenarios, and are not described in detail here.
[0087] In a specific embodiment of the present invention, Figure 3 As shown, the circular points represent acupoint sample points, and the head side sample image includes 20 acupoint sample points, which are numbered 1-20 respectively.
[0088] Among them, the curvature change rate of the curve between acupoint sample point A and acupoint sample point B is small, less than the first threshold, and the number of supporting sample points and acupoint sample points in curve segment AB is 4, then 2 supporting sample points should be inserted between acupoint sample point A and acupoint sample point B.
[0089] Among them, the curvature change rate of the curve between acupoint sample point C and acupoint sample point D is relatively large, greater than the first threshold, and the length of the curve between acupoint sample point C and acupoint sample point D is less than the length threshold. The number of supporting sample points and acupoint sample points in curve segment CD is 7, and 4 supporting sample points should be inserted between acupoint sample point C and acupoint sample point D.
[0090] Among them, the curvature change rate of the curve between acupoint sample point D and acupoint sample point E is relatively large, greater than the first threshold, and the length of the curve between acupoint sample point D and acupoint sample point E is greater than the length threshold. The number of supporting sample points and acupoint sample points in curve segment DE is 9, and 2 supporting sample points should be inserted between acupoint sample point D and acupoint sample point E.
[0091] It should be noted that when multiple support sample points need to be inserted, the multiple support sample points and the multiple acupoint sample points should be distributed as evenly as possible.
[0092] like Figure 3 As shown, rectangular points are used to represent supporting sample points. The head side sample image includes 20 acupoint sample points, which are numbered 1-20, and 9 supporting sample points, which are numbered 1-9.
[0093] In some embodiments of the present invention, step S103 is: fitting the acupuncture points and supporting points based on the 6 curve segments divided in step S102, that is, fitting to obtain 6 fitting curves.
[0094] But by Figure 3It can be seen that the curvature of the curve formed by the acupuncture points numbered 7-12 varies greatly as a whole, and it is impossible to express it through a simple expression. If this section of the curve is fitted as a whole, the fitting calculation amount and accuracy are both low. In order to avoid similar problems, in a specific embodiment of the present invention, step S103 is:
[0095] A plurality of curve segments are determined based on a plurality of acupuncture points and a plurality of supporting points. The curve segments are gentle curve segments or circular curve segments. Each curve segment includes at least one acupuncture point and at least one supporting point.
[0096] The embodiment of the present invention divides and fits the curve segments into two forms: transition curve segments and circular curve segments, that is, each curve segment can be expressed by a curve expression, thereby improving the fitting efficiency while ensuring the fitting accuracy.
[0097] Specifically, the fitting curve includes 11 curve segments, and the acupuncture points and sample points included in each curve segment are shown in Table 1.
[0098] Table 1 Curve segments and the acupuncture points and sample points they contain
[0099]
[0100] It can be seen from Table 1 that the embodiment of the present invention divides the curve segment into 11 segments for segment-by-segment fitting.
[0101] Since the acupoints identified based on the target acupoint recognition model may not completely coincide with the fitting curve obtained by fitting, but the fitting curve represents the gallbladder meridian of foot Shaoyang, in order to ensure the accuracy of acupoint positioning, in a specific embodiment of the present invention, Figure 5 As shown, the step S104 of determining whether the acupuncture point needs correction based on the fitting curve includes:
[0102] S501, determining whether the distance between each acupuncture point and the fitting curve is greater than zero and less than a distance threshold;
[0103] S502, when the distance between each acupoint and the fitting curve is equal to zero, the acupoint does not need to be corrected;
[0104] S503, when the distance between each acupoint and the fitting curve is greater than or equal to the distance threshold, the acupoint is eliminated;
[0105] S504: When the distance between each acupoint and the fitting curve is greater than zero and less than a distance threshold, the acupoint needs to be corrected.
[0106] The embodiment of the present invention eliminates acupuncture points when the distance between each acupuncture point and the fitting curve is greater than or equal to a distance threshold, thereby avoiding misidentifying an incorrectly identified acupuncture point as a target acupuncture point, thereby further ensuring the accuracy of the target acupuncture point.
[0107] In a specific embodiment of the present invention, Figure 6 As shown, the acupuncture point is corrected based on the fitting curve in step S104 to obtain the target acupuncture point, including:
[0108] S601, obtaining a tangent line of the fitting curve, and taking a direction perpendicular to the tangent line and pointing to the fitting curve as a moving direction of the acupuncture point;
[0109] S602: Taking the distance between the acupuncture point and the fitting curve as the moving distance, controlling the acupuncture point to move along the moving direction, and obtaining the target acupuncture point.
[0110] In a specific embodiment of the present invention, Figure 7 As shown, the identified acupuncture point numbered 8 does not overlap with the fitted curve segment and does not exceed the correction range. At this time, it should be moved to the fitted curve segment.
[0111] The unit vector of the moving direction is for:
[0112]
[0113] In the formula, It is the first derivative of the curve segment whose abscissa is the same as the acupuncture point numbered 8.
[0114] Among them, the moving distance for:
[0115]
[0116] Wherein, P is the acupuncture point numbered 8, and Q is the point on the curve segment whose abscissa is the same as that of the acupuncture point numbered 8.
[0117] In summary, the method for locating acupoints on the side of the head provided by the embodiment of the present invention utilizes deep learning, that is, the target recognition model obtains acupoints, does not require human intervention, has a rapid response capability, can obtain acupoints in real time and dynamically, and assists doctors in diagnosis. In addition, by setting up a method for marking and correcting acupoints based on the curve of the foot-shaoyang gallbladder meridian, the recognition of acupoints on the head will also be constrained by the pre-marked meridian curve features, thereby improving the accuracy of acupoint positioning. Furthermore, the embodiment of the present invention does not require the use of expensive imaging equipment and has a low cost. Furthermore, the embodiment of the present invention sets a sample set of acupoints on the side of the head, including multiple sample images of the side of the head of different people, multiple sample images of the side of the head of the same person at the same distance at different angles, and multiple sample images of the side of the head of the same person at different distances at the same angle, so as to cope with changes in factors such as different head shapes, postures, shooting distances, and lighting conditions, thereby further improving the accuracy of the identified acupoints.
[0118] In order to better implement the head side acupoint locating method in the embodiment of the present invention, based on the head side acupoint locating method, the embodiment of the present invention also provides a head side acupoint locating device, such as Figure 8 As shown, the head side acupuncture point positioning device 800 includes:
[0119] The model training unit 801 is used to train the acupoint recognition model based on the acupoint sample set on the side of the head to obtain a target acupoint recognition model; the acupoint sample set on the side of the head includes a plurality of acupoint sample points and a plurality of supporting sample points located on the curve of the foot Shaoyang Gallbladder Meridian;
[0120] The image recognition unit 802 is used to input the head side image to be recognized into the target acupoint recognition model to obtain multiple acupoints and multiple support points;
[0121] The curve fitting unit 803 is used to fit multiple acupoints and multiple support points to obtain a fitting curve;
[0122] The acupuncture point positioning unit 804 is used to determine whether the acupuncture point needs to be corrected based on the fitting curve. If correction is required, the acupuncture point is corrected based on the fitting curve to obtain the target acupuncture point.
[0123] The device 800 for locating acupoints on the side of the head provided in the above embodiment can implement the technical solution described in the above embodiment of the method for locating acupoints on the side of the head. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above embodiment of the method for locating acupoints on the side of the head, which will not be repeated here.
[0124] like Fig. 9 As shown, the present invention also provides an acupuncture robot 900. The acupuncture robot 900 includes a processor 901, a memory 902 and a display 903. Fig. 9Only some components of the acupuncture robot 900 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.
[0125] In some embodiments, the processor 901 may be a central processing unit (CPU), a microprocessor or other data processing chip, which is used to run the program code or process data stored in the memory 902, such as the method for locating acupuncture points on the side of the head in the present invention.
[0126] In some embodiments of the present invention, the processor 901 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 901 may be local or remote. In some embodiments, the processor 901 may be implemented in a cloud platform. In one embodiment, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.
[0127] In some embodiments, the memory 902 may be an internal storage unit of the acupuncture robot 900, such as a hard disk or memory of the acupuncture robot 900. In other embodiments, the memory 902 may also be an external storage device of the acupuncture robot 900, 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 900.
[0128] Furthermore, the memory 902 may include both an internal storage unit of the acupuncture robot 900 and an external storage device. The memory 902 is used to store application software installed in the acupuncture robot 900 and various data.
[0129] In some embodiments, the display 903 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 903 is used to display information of the acupuncture robot 900 and to display a visual user interface. The components 901-903 of the acupuncture robot 900 communicate with each other via a system bus.
[0130] In some embodiments of the present invention, when the processor 901 executes the head side acupuncture point positioning program in the memory 902, the following steps may be implemented:
[0131] The acupoint recognition model is trained based on the acupoint sample set on the side of the head to obtain the target acupoint recognition model; the acupoint sample set on the side of the head includes multiple acupoint sample points and multiple supporting sample points located on the curve of the foot Shaoyang Gallbladder Meridian;
[0132] Inputting the side image of the head to be identified into the target acupoint recognition model to obtain multiple acupoints and multiple supporting points;
[0133] Fitting multiple acupuncture points and multiple supporting points to obtain a fitting curve;
[0134] Whether the acupuncture point needs correction is determined based on the fitting curve. If correction is needed, the acupuncture point is corrected based on the fitting curve to obtain the target acupuncture point.
[0135] It should be understood that: when the processor 901 executes the head side acupuncture point positioning program in the memory 902, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the corresponding method embodiment above.
[0136] Furthermore, the embodiment of the present invention does not specifically limit the type of the acupuncture robot 900 mentioned. The acupuncture robot 900 may be a portable acupuncture robot such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable acupuncture robots include but are not limited to portable acupuncture robots equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable acupuncture robot may also be other portable acupuncture robots. It should also be understood that in some other embodiments of the present invention, the acupuncture robot 900 may not be a portable acupuncture robot, but a desktop computer with a touch-sensitive surface (such as a touch panel).
[0137] 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, it can implement the steps or functions of the head side acupoint locating method provided in the above-mentioned method embodiments.
[0138] 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.
[0139] The above is a detailed introduction to a method, device, acupuncture robot and storage medium for locating acupoints on the side of the head provided by the present invention. 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 locating acupuncture points on the side of the head, It is characterized in that include: Training an acupoint recognition model based on a sample set of acupoints on the side of the head to obtain a target acupoint recognition model; the sample set of acupoints on the side of the head includes a plurality of acupoint sample points and a plurality of supporting sample points located on the curve of the foot-shaoyang gallbladder meridian; Inputting the side image of the head to be identified into the target acupoint recognition model to obtain multiple acupoints and multiple support points; Fitting the multiple acupuncture points and the multiple supporting points to obtain a fitting curve; Determining whether the acupuncture point needs correction based on the fitting curve, and when correction is needed, correcting the acupuncture point based on the fitting curve to obtain a target acupuncture point; Before the acupoint recognition model is trained based on the acupoint sample set on the side of the head, the method further includes: Acquire multiple sample images of the side of the head, and determine the curve of the Gallbladder Meridian of Foot Shaoyang in each of the sample images of the side of the head; Marking acupuncture points based on the foot-shaoyang gallbladder meridian curve to obtain multiple acupuncture point sample points; Segmenting the Gallbladder Meridian of Foot Shaoyang curve based on the inflection points of the Gallbladder Meridian of Foot Shaoyang curve to obtain multiple Gallbladder Meridian of Foot Shaoyang sub-curves; Determine at least one supporting sample point to be inserted into the Gallbladder Meridian of Foot Shaoyang sub-curve based on the number of acupoint sample points in each segment of the Gallbladder Meridian of Foot Shaoyang sub-curve and the curve characteristics; The curve characteristics include a curvature change rate and a curve length; then the determination of inserting at least one supporting sample point on the foot Shaoyang gallbladder meridian sub-curve based on the number of acupoint sample points in each section of the foot Shaoyang gallbladder meridian sub-curve and the curve characteristics of each section of the foot Shaoyang gallbladder meridian sub-curve includes: When the curvature change rate of the foot Shaoyang Gallbladder Meridian sub-curve is less than or equal to a first threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang Gallbladder Meridian sub-curve is the first threshold number, and the target number of supporting sample points inserted into the foot Shaoyang Gallbladder Meridian sub-curve is determined based on the first threshold number and the number of acupoint sample points; When the curvature change rate of the foot Shaoyang gallbladder meridian sub-curve is greater than a first threshold value, and the curve length of the foot Shaoyang gallbladder meridian sub-curve pair is less than or equal to a length threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang gallbladder meridian sub-curve is a second threshold number, and a target number of supporting sample points to be inserted into the foot Shaoyang gallbladder meridian sub-curve is determined based on the second threshold number and the number of acupoint sample points; When the curvature change rate of the foot Shaoyang gallbladder meridian sub-curve is greater than a first threshold value, and the curve length of the foot Shaoyang gallbladder meridian sub-curve pair is greater than a length threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang gallbladder meridian sub-curve is a third threshold number, and a target number of supporting sample points to be inserted into the foot Shaoyang gallbladder meridian sub-curve is determined based on the third threshold number and the number of acupoint sample points; Inserting the target number of supporting sample points onto the sub-curve of the Gallbladder Meridian of Foot Shaoyang; Among them, the first threshold number is smaller than the second threshold number, and the second threshold number is smaller than the third threshold number.
2. The method for locating acupuncture points on the side of the head according to claim 1, It is characterized in that The step of fitting the plurality of acupuncture points and the plurality of supporting points to obtain a fitting curve comprises: A plurality of curve segments are determined based on the plurality of acupuncture points and the plurality of supporting points. The curve segments are gentle curve segments or circular curve segments. Each of the curve segments includes at least one of the acupuncture points and at least one of the supporting points.
3. The method for locating acupuncture points on the side of the head according to claim 1, It is characterized in that The step of determining whether the acupuncture point needs correction based on the fitting curve comprises: Determine whether the distance between each of the acupuncture points and the fitting curve is greater than zero and less than a distance threshold; When the distance between each acupoint and the fitting curve is zero, the acupoint does not need to be corrected; When the distance between each acupoint and the fitting curve is greater than or equal to a distance threshold, the acupoint is eliminated; When the distance between each acupoint and the fitting curve is greater than zero and less than a distance threshold, the acupoint needs to be corrected.
4. The method for locating acupuncture points on the side of the head according to claim 1, It is characterized in that The step of correcting the acupuncture point based on the fitting curve to obtain the target acupuncture point comprises: Obtaining a tangent line of the fitting curve, and taking a direction perpendicular to the tangent line and pointing to the fitting curve as a moving direction of the acupuncture point; The distance between the acupuncture point and the fitting curve is used as the moving distance, and the acupuncture point is controlled to move along the moving direction by the moving distance to obtain the target acupuncture point.
5. The method for locating acupuncture points on the side of the head according to claim 1, It is characterized in that The head side acupuncture point sample set includes multiple head side sample images of different persons, multiple head side sample images of the same person at different angles and at the same distance, and multiple head side sample images of the same person at the same angle and at different distances.
6. A device for locating acupuncture points on the side of the head, It is characterized in that include: A model training unit, used for training an acupoint recognition model based on a sample set of acupoints on the side of the head to obtain a target acupoint recognition model; the sample set of acupoints on the side of the head includes a plurality of acupoint sample points and a plurality of supporting sample points located on the curve of the foot-shaoyang gallbladder meridian; An image recognition unit to be recognized, used for inputting the side image of the head to be recognized into the target acupoint recognition model to obtain a plurality of acupoints and a plurality of supporting points; A curve fitting unit, used for fitting the plurality of acupoints and the plurality of support points to obtain a fitting curve; an acupuncture point positioning unit, used to determine whether the acupuncture point needs to be corrected based on the fitting curve, and when correction is needed, correct the acupuncture point based on the fitting curve to obtain a target acupuncture point; Before the acupoint recognition model is trained based on the acupoint sample set on the side of the head, the method further includes: Acquire multiple sample images of the side of the head, and determine the curve of the Gallbladder Meridian of Foot Shaoyang in each of the sample images of the side of the head; Marking acupuncture points based on the foot-shaoyang gallbladder meridian curve to obtain multiple acupuncture point sample points; Segmenting the Gallbladder Meridian of Foot Shaoyang curve based on the inflection points of the Gallbladder Meridian of Foot Shaoyang curve to obtain multiple Gallbladder Meridian of Foot Shaoyang sub-curves; Determine at least one supporting sample point to be inserted into the Gallbladder Meridian of Foot Shaoyang sub-curve based on the number of acupoint sample points in each segment of the Gallbladder Meridian of Foot Shaoyang sub-curve and the curve characteristics; The curve characteristics include a curvature change rate and a curve length; then the determination of inserting at least one supporting sample point on the foot Shaoyang gallbladder meridian sub-curve based on the number of acupoint sample points in each section of the foot Shaoyang gallbladder meridian sub-curve and the curve characteristics of each section of the foot Shaoyang gallbladder meridian sub-curve includes: When the curvature change rate of the foot Shaoyang Gallbladder Meridian sub-curve is less than or equal to a first threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang Gallbladder Meridian sub-curve is the first threshold number, and the target number of supporting sample points inserted into the foot Shaoyang Gallbladder Meridian sub-curve is determined based on the first threshold number and the number of acupoint sample points; When the curvature change rate of the foot Shaoyang gallbladder meridian sub-curve is greater than a first threshold value, and the curve length of the foot Shaoyang gallbladder meridian sub-curve pair is less than or equal to a length threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang gallbladder meridian sub-curve is a second threshold number, and a target number of supporting sample points to be inserted into the foot Shaoyang gallbladder meridian sub-curve is determined based on the second threshold number and the number of acupoint sample points; When the curvature change rate of the foot Shaoyang gallbladder meridian sub-curve is greater than a first threshold value, and the curve length of the foot Shaoyang gallbladder meridian sub-curve pair is greater than a length threshold value, the total number of supporting sample points and acupoint sample points on the foot Shaoyang gallbladder meridian sub-curve is a third threshold number, and a target number of supporting sample points to be inserted into the foot Shaoyang gallbladder meridian sub-curve is determined based on the third threshold number and the number of acupoint sample points; Inserting the target number of supporting sample points onto the sub-curve of the Gallbladder Meridian of Foot Shaoyang; Among them, the first threshold number is smaller than the second threshold number, and the second threshold number is smaller than the third threshold number.
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 method for locating acupuncture points on the side of the head as described in any one of claims 1 to 5.
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 method for locating acupuncture points on the side of the head described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Human body meridian automatic labeling method and device based on deep learning, equipment and storage medium
CN113807414A
