Acupuncture map recognition method and system based on artificial intelligence
By constructing a three-dimensional matrix and rotation processing, combined with the acupuncture map recognition network, the problem of inaccurate acupoint locations caused by posture changes in acupuncture map recognition is solved, and higher-precision acupoint recognition is achieved.
Patent Information
- Application Number
- CN202410838204.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the recognition of acupuncture maps using existing technology, the detection of acupuncture point locations and categories is not accurate enough due to intolerance of gestures, making it difficult to accurately identify acupuncture point locations in small areas on the body.
Using an artificial intelligence-based method, a three-dimensional matrix is constructed by obtaining the acupuncture map, the posture image to be detected, and the local image, and clustering and rotation processing are performed to establish an acupoint connection map. It is combined with the acupuncture map recognition network to perform refined identification and accurately locate the acupoint location. .
By adjusting the three-dimensional matrix through the local rotation angle, accurate acupoint connection relationships are established, which improves the recognition accuracy of acupoint locations and achieves more accurate acupuncture map recognition.
Smart Images

Figure CN118628778A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an acupuncture atlas recognition method and system based on artificial intelligence. Background Art
[0002] At present, because the positions and categories of acupoints displayed at different angles are different due to different postures, it is necessary to identify the displayed acupoints when performing acupuncture atlas recognition. Because it is unknown in which part of the body the position to be detected is located, it is difficult to detect the position of the acupoint. Because the area occupied by the acupoints in the body is small, detecting the acupoints corresponding to the acupoints in the acupuncture atlas only through the physiological characteristics of the body's own structural relationship will result in inaccurate acupoint detection. Summary of the invention
[0003] The purpose of the present invention is to provide an acupuncture atlas recognition method and system based on artificial intelligence to solve the above-mentioned problems existing in the prior art.
[0004] In a first aspect, an embodiment of the present invention provides an acupuncture atlas recognition method based on artificial intelligence, comprising: Obtain an acupuncture atlas, a posture image to be detected, and a partial image to be detected; the acupuncture atlas is a map with acupoint locations and acupoint categories marked; the posture image to be detected is an image containing the complete posture of the object to be detected; the partial image to be detected represents an image of a local area where the acupoint to be detected is located; According to the acupoint positions in the acupuncture atlas, a three-dimensional matrix is constructed to obtain a three-dimensional acupuncture matrix; the acupoint positions are the positions of the acupoints on the atlas with the acupoints marked; Based on the acupuncture atlas and the three-dimensional acupuncture matrix, the positions of two acupoints in the acupuncture atlas are simultaneously determined by clustering to obtain a clustered acupoint set; Based on the posture image to be detected and the partial image to be detected, the position of the feature point is detected, the motion posture is judged, and the partial rotation angle is obtained; Based on the local rotation angle, the three-dimensional acupuncture matrix is rotated to obtain an adjusted three-dimensional acupuncture matrix; Based on adjusting the three-dimensional acupuncture matrix and the clustered acupoint set, the commonly used acupoints and the acupoints on the front after rotation are connected to obtain a key connection map; the key connection map is a two-dimensional image; Based on the key connection graph, key-value pairs are constructed, and the acupoint positions are refined and identified through the acupuncture atlas recognition network to obtain the detected acupoint positions.
[0005] Optionally, the key-value pairs are constructed based on the key connection graph, and the acupoint positions are refined and identified through the acupuncture atlas recognition network to obtain the detected acupoint positions, including: Inputting the local image to be detected into an acupoint structure detection network to detect common acupoints, and obtaining local features and a first common acupoint position; According to the common acupoint positions corresponding to the key connection map and the first common acupoint positions corresponding to the partial image to be detected, the partial image to be detected and the key connection map are matched, and the acupoints in the key connection map are marked in the partial image to be detected to obtain a matching image; Constructing a feature key-value pair based on the acupoint position in the matching image as a key and the feature vector of the corresponding position in the local feature as a value; The key and the corresponding value of the feature key-value pair are input into the acupuncture atlas recognition network to obtain the detected acupoint position.
[0006] Optionally, the detecting the position of the feature points, judging the motion posture, and obtaining the local rotation angle based on the posture image to be detected and the partial image to be detected includes: Inputting the posture image to be detected into a first feature extraction network, extracting image features, and obtaining overall posture features; Inputting the local image to be detected into a first feature extraction network to extract image features to obtain local posture features; The local posture feature is traversed over the overall posture feature with a step size of 1, and similarity calculation is performed on the corresponding position to obtain a local similarity value; According to the local similarity value, the matching features in the overall posture feature are cut to obtain similar posture features; Inputting the similar posture feature into a classification network to obtain a first local position to be detected; the first local position to be detected represents the position of the local image to be detected on the posture image to be detected; Marking the posture image to be detected according to the first local position to be detected to obtain a marked posture image to be detected; The marked posture image to be detected is input into a motion detection network to determine the change of the local part according to the movement of the overall posture, and obtain the local rotation angle.
[0007] Optionally, based on the acupuncture atlas and the three-dimensional acupuncture matrix, the positions of two acupoints in the acupuncture atlas are determined by clustering to obtain a clustered acupoint set, including: Based on the acupuncture atlas and the three-dimensional acupuncture matrix, common acupuncture points are found to obtain cluster center points; the cluster center points remain unchanged; Detecting the position of the cluster center point in the three-dimensional acupuncture matrix to obtain the position of the cluster center point; Obtaining the first acupuncture point location and the second acupuncture point location in a three-dimensional acupuncture matrix; Based on the first acupoint position and the second acupoint position, detecting the angle and distance ratio between the two acupoints and the cluster center point position to obtain the cluster distance; If the cluster distance is less than the distance threshold, the acupoint corresponding to the first acupoint position and the acupoint corresponding to the second acupoint position are added to the cluster acupoint set.
[0008] Optionally, rotating the three-dimensional acupuncture matrix based on the local rotation angle to obtain an adjusted three-dimensional acupuncture matrix includes: Constructing a point cloud from the three-dimensional acupuncture matrix; Rotating the point cloud according to the local rotation angle to obtain a rotated point cloud; According to the minimum distance between two values in the rotated point cloud, the data in the rotated point cloud is divided into each position in the three-dimensional matrix to obtain an adjusted three-dimensional acupuncture matrix.
[0009] Optionally, the method of connecting the commonly used acupoints with the acupoints on the front after rotation based on the adjustment of the three-dimensional acupuncture matrix and the clustered acupoint set to obtain a key connection diagram includes: Acquire a first image; the size of the first image is the same as the size of the partial image to be detected; Copying the acupoint positions and acupoint categories of the points on the first page of the adjusted three-dimensional acupuncture matrix into the first image; using the acupoint positions in the first image whose acupoint category is common acupoints as common acupoint positions; The common acupoint positions in the first image are connected with the acupoint positions in the corresponding clustered acupoint set by straight lines to obtain a focused connection image.
[0010] Optionally, based on the first acupoint position and the second acupoint position, detecting the angle and distance ratio between the two acupoints and the cluster center point position to obtain the cluster distance includes: Calculating the distance between the first acupoint position and the cluster center point position to obtain a first distance; calculating the distance between the second acupoint position and the cluster center point position to obtain a second distance; Dividing the first distance by the second distance to obtain a first distance ratio; The cosine value of the angle formed by the first acupoint position, the second acupoint position and the cluster center point position is used as the first cosine value; The first distance ratio and the first cosine value are averaged to obtain the cluster distance.
[0011] Optionally, the size of the local posture feature is m×m, the size of the overall posture feature is n×n, and the number of local similarity values is (n-m+1)×(n-m+1).
[0012] Optionally, the step of cutting matching features from the overall posture features according to the local similarity values to obtain similar posture features includes: The local similarity value among the (n-m+1)×(n-m+1) local similarity values that is greater than other local similarity values is taken as the first local similarity value; The region corresponding to the first local similarity value in the overall posture feature is cut to obtain a similar posture feature.
[0013] In a second aspect, an embodiment of the present invention provides an acupuncture atlas recognition system based on artificial intelligence, comprising: Acquisition module: obtains an acupuncture atlas, a posture image to be detected and a partial image to be detected; the acupuncture atlas is a map with acupoints marked; the posture image to be detected is an image containing the complete posture of the object to be detected; the partial image to be detected represents an image of a local area where the acupoint to be detected is located; Three-dimensional module: constructing a three-dimensional matrix according to the acupoint positions in the acupuncture atlas to obtain a three-dimensional acupuncture matrix; the acupoint positions are the positions of the acupoints on the atlas with the acupoints marked; Clustering module: Based on the acupuncture atlas and the three-dimensional acupuncture matrix, the positions of two acupoints in the acupuncture atlas are determined by clustering to obtain a clustered acupoint set; Rotation module: based on the posture image to be detected and the partial image to be detected, detect the position of the feature points, judge the motion posture, and obtain the partial rotation angle; based on the partial rotation angle, rotate the three-dimensional acupuncture matrix to obtain the adjusted three-dimensional acupuncture matrix; Acupoint connection module: based on adjusting the three-dimensional acupuncture matrix and the clustered acupoint set, connecting the commonly used acupoints with the acupoints on the front after rotation to obtain a key connection map; the key connection map is a two-dimensional image; Refinement identification module: Based on the key connection diagram, key-value pairs are constructed, and the acupoint positions are refined and identified through the acupuncture atlas recognition network to obtain the detected acupoint positions.
[0014] Compared with the prior art, the embodiments of the present invention achieve the following beneficial effects: The embodiment of the present invention also provides an acupuncture atlas recognition method and system based on artificial intelligence, the method comprising: obtaining an acupuncture atlas, a posture image to be detected and a partial image to be detected; the acupuncture atlas is an atlas with acupoint positions and acupoint categories marked; the posture image to be detected is an image containing the complete posture of the object to be detected; the partial image to be detected represents an image of a local area where the acupoint to be detected is located; according to the acupoint positions in the acupuncture atlas, a three-dimensional matrix is constructed to obtain a three-dimensional acupuncture matrix; the acupoint positions are the positions of the acupoints on the atlas marked with acupoints; based on the acupuncture atlas and the three-dimensional acupuncture matrix, Clustering simultaneously determines the positions of two acupoints in the acupuncture atlas to obtain a clustered acupoint set; based on the posture image to be detected and the local image to be detected, the position of the feature point is detected, the movement posture is determined, and the local rotation angle is obtained; based on the local rotation angle, the three-dimensional acupuncture matrix is rotated to obtain an adjusted three-dimensional acupuncture matrix; based on the adjusted three-dimensional acupuncture matrix and the clustered acupoint set, the commonly used acupoints and the acupoints on the front after rotation are connected to obtain a key connection diagram; the key connection diagram is a two-dimensional image; based on the key connection diagram, key-value pairs are constructed, and the acupoint positions are refined and identified through the acupuncture atlas recognition network to obtain the detected acupoint positions.
[0015] In the present invention, the position of the local image to be detected in the posture image to be detected is obtained, and the posture of the local part is judged according to the movement state of the whole body. And the angle between the local part and the camera device that shoots the posture image to be detected is judged by the posture of the local part to obtain the local rotation angle. A three-dimensional acupuncture matrix containing acupoint positions and acupoint categories is obtained according to the acupuncture atlas. The three-dimensional acupuncture matrix is adjusted according to the local rotation angle to obtain the displayed acupoint positions and acupoint categories. According to the displayed acupoint positions and acupoint categories, the relationships between the acupoints are established according to the clustered acupoints, and the acupoints are connected to obtain an image containing the acupoint relationship. Feature key-value pairs are constructed according to the features containing the surrounding positions, and the acupoint positions can be refined and adjusted, so that the technical effect of more accurate identified acupoint positions is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a flow chart of an acupuncture atlas recognition method based on artificial intelligence provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0017] The present invention will be described in detail below in conjunction with the accompanying drawings.
[0018] Example 1
[0019] like Figure 1 As shown, an embodiment of the present invention provides an acupuncture atlas recognition method based on artificial intelligence, the method comprising: S101: Obtain an acupuncture atlas, a posture image to be detected, and a partial image to be detected; the acupuncture atlas is an atlas with acupoint locations and acupoint categories marked; the posture image to be detected is an image containing the complete posture of the object to be detected; the partial image to be detected represents an image of a local area where the acupoint to be detected is located.
[0020] The acupoint position indicates the position of the acupoint, and the acupoint category indicates the category of the acupoint.
[0021] In this embodiment, an image containing the entire human body is used as the posture image to be detected.
[0022] S102: constructing a three-dimensional matrix according to the acupuncture point positions in the acupuncture atlas to obtain a three-dimensional acupuncture matrix.
[0023] The three-dimensional acupuncture matrix is a three-dimensional matrix in which the positions corresponding to the acupoint positions are filled with acupoint positions and acupoint categories.
[0024] S103: Based on the acupuncture atlas and the three-dimensional acupuncture matrix, the positions of two acupoints in the acupuncture atlas are simultaneously determined by clustering to obtain a clustered acupoint set.
[0025] S104: Based on the posture image to be detected and the partial image to be detected, the positions of feature points are detected, the motion posture is determined, and the partial rotation angle is obtained.
[0026] S105: rotating the three-dimensional acupuncture matrix based on the local rotation angle to obtain an adjusted three-dimensional acupuncture matrix; S106: Based on the adjustment of the three-dimensional acupuncture matrix and the clustered acupoint set, the commonly used acupoints and the acupoints on the front after rotation are connected to obtain a key connection map; the key connection map is a two-dimensional image.
[0027] S107: Based on the key connection graph, key-value pairs are constructed, and the acupoint positions are refined and identified through the acupuncture atlas recognition network to obtain the detected acupoint positions.
[0028] Optionally, the key-value pairs are constructed based on the key connection graph, and the acupoint positions are refined and identified through the acupuncture atlas recognition network to obtain the detected acupoint positions, including: The local image to be detected is input into the acupoint structure detection network to detect the commonly used acupoints, and obtain the local features and the first commonly used acupoint position.
[0029] According to the common acupoint positions corresponding to the key connection map and the first common acupoint positions corresponding to the local image to be detected, the local image to be detected and the key connection map are matched, and the acupoints in the key connection map are marked in the local image to be detected to obtain a matching image.
[0030] The matching image is an image of the connection structure in the commonly used acupoint map.
[0031] The key connection map has the same size as the local image to be detected.
[0032] Among them, in this embodiment, the common acupoint positions are detected in the partial image to be detected according to the human body structure, and the positions of other acupoints are copied in the partial image to be detected according to the connection method in the key connection diagram.
[0033] A feature key-value pair is constructed by using the acupoint position in the matching image as a key and the feature vector of the corresponding position in the local feature as a value.
[0034] Among them, if the acupoint position is [1, 1], the features containing the positions [1, 1], [1, 2], [1, 3], [2, 1], [2, 1], [2, 2], [2, 3, [3, 1], [3, 2], [3, 3] in the matching image are extracted from the overall posture features to construct feature key-value pairs.
[0035] The key and the corresponding value of the feature key-value pair are input into the acupuncture atlas recognition network to obtain the detected acupoint position.
[0036] Wherein, the acupuncture atlas recognition network is a fully connected neural network (FCN) that adjusts the positions of acupoints.
[0037] Wherein, the acupuncture atlas recognition network is trained using the marked acupoint locations.
[0038] Optionally, the detecting the position of the feature points, judging the motion posture, and obtaining the local rotation angle based on the posture image to be detected and the partial image to be detected includes: The posture image to be detected is input into a first feature extraction network to extract image features to obtain overall posture features.
[0039] Among them, the first feature extraction network is a convolutional neural network (Convolutional Neural Networks, CNN).
[0040] The local image to be detected is input into a first feature extraction network to extract image features to obtain local posture features.
[0041] The local posture feature is traversed over the overall posture feature with a step size of 1, and similarity calculation is performed on the corresponding position to obtain a local similarity value.
[0042] Among them, the cross entropy loss function is used to perform similarity calculation on the corresponding positions of local posture features and global posture features.
[0043] According to the local similarity value, the matching features in the overall posture features are cut to obtain similar posture features.
[0044] The similar posture feature is input into a classification network to obtain a first local position to be detected; the first local position to be detected represents the position of the local image to be detected on the posture image to be detected.
[0045] Wherein, the classification network is a fully connected neural network (Fully Connected Neural Network, FCN).
[0046] Marking the posture image to be detected according to the first local position to be detected to obtain a marked posture image to be detected; The marked posture image to be detected is input into a motion detection network to determine the change of the local part according to the movement of the overall posture, and obtain the local rotation angle.
[0047] In this embodiment, the motion detection network is a recurrent neural network (RNN). The motion detection network is a network trained with marked local rotation angles.
[0048] Optionally, based on the acupuncture atlas and the three-dimensional acupuncture matrix, the positions of two acupoints in the acupuncture atlas are determined by clustering to obtain a clustered acupoint set, including: Based on the acupuncture atlas and the three-dimensional acupuncture matrix, common acupoints are found and cluster centers are obtained; the cluster centers remain unchanged.
[0049] Among them, the commonly used acupoints are obtained; the commonly used acupoints are the acupoints frequently used in acupuncture; as in the present embodiment, the acupoints below the elbow and knee are usually called the five acupoints, including the Jing, Ying, Shu, Jing, and He acupoints, which are frequently used, that is, the acupoints below the elbow joint, the knee joint, and the limbs that are frequently used in acupuncture treatment are taken as the commonly used acupoints; the commonly used acupoints are taken as the cluster center points.
[0050] The position of the cluster center point in the three-dimensional acupuncture matrix is detected to obtain the position of the cluster center point.
[0051] The cluster center point position is a three-dimensional position.
[0052] The first acupuncture point position and the second acupuncture point position are obtained in the three-dimensional acupuncture matrix.
[0053] Based on the first acupoint position and the second acupoint position, the angle and distance ratio between the two acupoints and the cluster center point position are detected to obtain the cluster distance.
[0054] Optionally, rotating the three-dimensional acupuncture matrix based on the local rotation angle to obtain an adjusted three-dimensional acupuncture matrix includes: The three-dimensional acupuncture matrix is constructed into a point cloud.
[0055] A three-dimensional coordinate system is constructed according to the three-dimensional acupuncture matrix, and the values of the positions corresponding to each row, each column and each page in the three-dimensional acupuncture matrix are projected to the constructed three-dimensional coordinate system to obtain a point cloud.
[0056] The point cloud is rotated according to the local rotation angle to obtain a rotated point cloud.
[0057] Among them, the three-dimensional coordinate system corresponding to the point cloud is rotated according to the local rotation angle.
[0058] According to the minimum distance between two values in the rotated point cloud, the data in the rotated point cloud is divided into each position in the three-dimensional matrix to obtain an adjusted three-dimensional acupuncture matrix.
[0059] The three-dimensional coordinate system of the rotated point cloud is reconstructed according to the directions of the x-axis, y-axis and z-axis of the three-dimensional coordinate system corresponding to the point cloud when it is not rotated; the difference on the x-axis, the difference on the y-axis and the difference on the z-axis between two values in the rotated point cloud are calculated to obtain the smallest value among the differences; according to the smallest value, the area between the values with the smallest difference is taken as a row, a column and a page to divide the rotated point cloud to obtain an adjusted three-dimensional acupuncture matrix.
[0060] Optionally, the method of connecting the commonly used acupoints with the acupoints on the front after rotation based on the adjustment of the three-dimensional acupuncture matrix and the clustered acupoint set to obtain a key connection diagram includes: Acquire a first image; the size of the first image is the same as the size of the partial image to be detected.
[0061] The width of the first image is equal to the width of the partial image to be detected; and the height of the first image is equal to the height of the partial image to be detected.
[0062] The acupoint positions and acupoint categories of the points in the first page of the adjusted three-dimensional acupuncture matrix are copied into the first image.
[0063] The first page of the adjustment three-dimensional matrix is equivalent to the acupuncture point positions and acupuncture point categories that can be observed at the angle of the camera device that captures the partial image to be detected.
[0064] using the acupoint positions in the first image whose acupoint category is common acupoints as common acupoint positions; The common acupoint positions in the first image are connected with the acupoint positions in the corresponding clustered acupoint set by straight lines to obtain a focused connection image.
[0065] Optionally, based on the first acupoint position and the second acupoint position, detecting the angle and distance ratio between the two acupoints and the cluster center point position to obtain the cluster distance includes: Calculating the distance between the first acupoint position and the cluster center point position to obtain a first distance; calculating the distance between the second acupoint position and the cluster center point position to obtain a second distance; Dividing the first distance by the second distance to obtain a first distance ratio; The cosine value of the angle formed by the first acupoint position, the second acupoint position and the cluster center point position is used as the first cosine value.
[0066] Wherein, the cosine distance algorithm is used to calculate the first cosine value.
[0067] Calculating the average of the first distance ratio and the first cosine value to obtain a cluster distance; If the cluster distance is less than the distance threshold, the acupoint corresponding to the first acupoint position and the acupoint corresponding to the second acupoint position are added to the cluster acupoint set.
[0068] In this embodiment, the distance threshold is 0.8.
[0069] Optionally, the size of the local posture feature is m×m, the size of the overall posture feature is n×n, and the number of local similarity values is (n-m+1)×(n-m+1).
[0070] Wherein, n and m are natural numbers greater than 0. The n is greater than or equal to m.
[0071] Optionally, the step of cutting matching features from the overall posture features according to the local similarity values to obtain similar posture features includes: A local similarity value that is greater than other local similarity values among the (n-m+1)×(n-m+1) local similarity values is taken as the first local similarity value.
[0072] The region corresponding to the first local similarity value in the overall posture feature is cut to obtain a similar posture feature.
[0073] Among them, the area in the overall posture feature that is most similar to the local posture feature is cut.
[0074] Example 2
[0075] Based on the above-mentioned artificial intelligence-based acupuncture atlas recognition method, an embodiment of the present invention also provides an artificial intelligence-based acupuncture atlas recognition system, which includes an acquisition module, a three-dimensional module, a clustering module, a rotation module, an acupoint connection module and a refinement recognition module.
[0076] The acquisition module is used to obtain an acupuncture atlas, a posture image to be detected and a local image to be detected; the acupuncture atlas is a map with acupoints marked on it; the posture image to be detected is an image containing the complete posture of the object to be detected; the local image to be detected represents an image of a local area where the acupoint to be detected is located.
[0077] The three-dimensional module is used to construct a three-dimensional matrix according to the acupoint positions in the acupuncture atlas to obtain a three-dimensional acupuncture matrix; the acupoint positions are the positions of the acupoints on the atlas with the acupoints marked.
[0078] The clustering module is used to determine the positions of two acupoints in the acupuncture atlas by clustering based on the acupuncture atlas and the three-dimensional acupuncture matrix, and obtain a clustered acupoint set.
[0079] The rotation module is used to detect the position of feature points, judge the motion posture, and obtain the local rotation angle based on the posture image to be detected and the local image to be detected; based on the local rotation angle, the three-dimensional acupuncture matrix is rotated to obtain an adjusted three-dimensional acupuncture matrix.
[0080] The acupoint connection module is used to connect the commonly used acupoints with the acupoints on the front after rotation based on the adjustment of the three-dimensional acupuncture matrix and the clustered acupoint set, so as to obtain a key connection diagram; the key connection diagram is a two-dimensional image.
[0081] The refinement recognition module is used to construct key-value pairs based on the key connection diagram, refine the recognition of acupoint positions through the acupuncture atlas recognition network, and obtain the detected acupoint positions.
Claims
1. An acupuncture atlas recognition method based on artificial intelligence, characterized in that: include: Obtain an acupuncture atlas, a posture image to be detected, and a partial image to be detected; the acupuncture atlas is a map with acupoint locations and acupoint categories marked; the posture image to be detected is an image containing the complete posture of the object to be detected; the partial image to be detected represents an image of a local area where the acupoint to be detected is located; According to the acupoint positions in the acupuncture atlas, a three-dimensional matrix is constructed to obtain a three-dimensional acupuncture matrix; the acupoint positions are the positions of the acupoints on the atlas with the acupoints marked; Based on the acupuncture atlas and the three-dimensional acupuncture matrix, the positions of two acupoints in the acupuncture atlas are simultaneously determined by clustering to obtain a clustered acupoint set; Based on the posture image to be detected and the partial image to be detected, the position of the feature point is detected, the motion posture is judged, and the partial rotation angle is obtained; Based on the local rotation angle, the three-dimensional acupuncture matrix is rotated to obtain an adjusted three-dimensional acupuncture matrix; Based on adjusting the three-dimensional acupuncture matrix and the clustered acupoint set, the commonly used acupoints and the acupoints on the front after rotation are connected to obtain a key connection map; the key connection map is a two-dimensional image; Based on the key connection graph, key-value pairs are constructed, and the acupoint positions are refined and identified through the acupuncture atlas recognition network to obtain the detected acupoint positions.
2. The acupuncture pattern recognition method based on artificial intelligence according to claim 1, characterized in that: The key-value pairs are constructed based on the key connection graph, and the acupoint positions are refined and identified through the acupuncture atlas recognition network to obtain the detected acupoint positions, including: Inputting the local image to be detected into an acupoint structure detection network to detect common acupoints, and obtaining local features and a first common acupoint position; According to the common acupoint positions corresponding to the key connection map and the first common acupoint positions corresponding to the partial image to be detected, the partial image to be detected and the key connection map are matched, and the acupoints in the key connection map are marked in the partial image to be detected to obtain a matching image; Constructing a feature key-value pair based on the acupoint position in the matching image as a key and the feature vector of the corresponding position in the local feature as a value; The key and the corresponding value of the feature key-value pair are input into the acupuncture atlas recognition network to obtain the detected acupoint position.
3. The acupuncture pattern recognition method based on artificial intelligence according to claim 1, characterized in that: The detecting the position of the feature points based on the posture image to be detected and the partial image to be detected, judging the motion posture, and obtaining the partial rotation angle comprises: Inputting the posture image to be detected into a first feature extraction network, extracting image features, and obtaining overall posture features; Inputting the local image to be detected into a first feature extraction network to extract image features to obtain local posture features; The local posture feature is traversed over the overall posture feature with a step size of 1, and similarity calculation is performed on the corresponding position to obtain a local similarity value; According to the local similarity value, the matching features in the overall posture feature are cut to obtain similar posture features; Inputting the similar posture feature into a classification network to obtain a first local position to be detected; the first local position to be detected represents the position of the local image to be detected on the posture image to be detected; Marking the posture image to be detected according to the first local position to be detected to obtain a marked posture image to be detected; The marked posture image to be detected is input into a motion detection network to determine the change of the local part according to the movement of the overall posture, and obtain the local rotation angle.
4. The acupuncture pattern recognition method based on artificial intelligence according to claim 1, characterized in that: The method of determining the positions of two acupoints in the acupuncture atlas by clustering based on the acupuncture atlas and the three-dimensional acupuncture matrix to obtain a clustered acupoint set includes: Based on the acupuncture atlas and the three-dimensional acupuncture matrix, common acupuncture points are found to obtain cluster center points; the cluster center points remain unchanged; Detecting the position of the cluster center point in the three-dimensional acupuncture matrix to obtain the position of the cluster center point; Obtaining the first acupuncture point location and the second acupuncture point location in a three-dimensional acupuncture matrix; Based on the first acupoint position and the second acupoint position, detecting the angle and distance ratio between the two acupoints and the cluster center point position to obtain the cluster distance; If the cluster distance is less than the distance threshold, the acupoint corresponding to the first acupoint position and the acupoint corresponding to the second acupoint position are added to the cluster acupoint set.
5. The acupuncture pattern recognition method based on artificial intelligence according to claim 1, characterized in that: The method of rotating the three-dimensional acupuncture matrix based on the local rotation angle to obtain an adjusted three-dimensional acupuncture matrix includes: Constructing a point cloud from the three-dimensional acupuncture matrix; Rotating the point cloud according to the local rotation angle to obtain a rotated point cloud; According to the minimum distance between two values in the rotated point cloud, the data in the rotated point cloud is divided into each position in the three-dimensional matrix to obtain an adjusted three-dimensional acupuncture matrix.
6. The acupuncture pattern recognition method based on artificial intelligence according to claim 1, characterized in that: The method of connecting the commonly used acupuncture points with the acupuncture points on the front after rotation based on the adjustment of the three-dimensional acupuncture matrix and the clustered acupuncture point set to obtain a key connection diagram includes: Acquire a first image; the size of the first image is the same as the size of the partial image to be detected; Copying the acupoint positions and acupoint categories of the points on the first page of the adjusted three-dimensional acupuncture matrix into the first image; using the acupoint positions in the first image whose acupoint category is common acupoints as common acupoint positions; The common acupoint positions in the first image are connected with the acupoint positions in the corresponding clustered acupoint set by straight lines to obtain a focused connection image.
7. The acupuncture pattern recognition method based on artificial intelligence according to claim 4, characterized in that: The detecting, based on the first acupoint position and the second acupoint position, the angle and the distance ratio between the two acupoints and the cluster center point position to obtain the cluster distance comprises: Calculating the distance between the first acupoint position and the cluster center point position to obtain a first distance; calculating the distance between the second acupoint position and the cluster center point position to obtain a second distance; Dividing the first distance by the second distance to obtain a first distance ratio; The cosine value of the angle formed by the first acupoint position, the second acupoint position and the cluster center point position is used as the first cosine value; The first distance ratio and the first cosine value are averaged to obtain the cluster distance.
8. The acupuncture pattern recognition method based on artificial intelligence according to claim 3, characterized in that: The size of the local posture feature is m×m, the size of the overall posture feature is n×n, and the number of the local similarity values is (n-m+1)×(n-m+1).
9. The artificial intelligence-based acupuncture pattern recognition method according to claim 8, characterized in that: The step of cutting the matching features in the overall posture features according to the local similarity values to obtain similar posture features includes: The local similarity value among the (n-m+1)×(n-m+1) local similarity values that is greater than other local similarity values is taken as the first local similarity value; The region corresponding to the first local similarity value in the overall posture feature is cut to obtain a similar posture feature.
10. An artificial intelligence-based acupuncture pattern recognition system, characterized in that: include: Acquisition module: obtains an acupuncture atlas, a posture image to be detected and a partial image to be detected; the acupuncture atlas is a map with acupoints marked; the posture image to be detected is an image containing the complete posture of the object to be detected; the partial image to be detected represents an image of a local area where the acupoint to be detected is located; Three-dimensional module: constructing a three-dimensional matrix according to the acupoint positions in the acupuncture atlas to obtain a three-dimensional acupuncture matrix; the acupoint positions are the positions of the acupoints on the atlas with the acupoints marked; Clustering module: Based on the acupuncture atlas and the three-dimensional acupuncture matrix, the positions of two acupoints in the acupuncture atlas are determined by clustering to obtain a clustered acupoint set; Rotation module: based on the posture image to be detected and the partial image to be detected, detect the position of the feature points, judge the motion posture, and obtain the partial rotation angle; based on the partial rotation angle, rotate the three-dimensional acupuncture matrix to obtain the adjusted three-dimensional acupuncture matrix; Acupoint connection module: based on adjusting the three-dimensional acupuncture matrix and the clustered acupoint set, connecting the commonly used acupoints with the acupoints on the front after rotation to obtain a key connection map; the key connection map is a two-dimensional image; Refinement identification module: Based on the key connection diagram, key-value pairs are constructed, and the acupoint positions are refined and identified through the acupuncture atlas recognition network to obtain the detected acupoint positions.
Citation Information
Cited By
Simulation training system and method for acupuncture and moxibustion needle applying manipulation
CN120183046A
