Binocular recognition moxibustion robot based on artificial intelligence

By integrating artificial intelligence technology into the moxibustion robot and using multi-jointed robotic arms and binocular cameras for acupoint identification and intelligent path planning, the problems of high labor cost, poor privacy and insufficient accuracy in traditional moxibustion treatment are solved and achieved Safe, accurate and personalized moxibustion treatment.

CN118806587AInactive Publication Date: 2024-10-22GREATER BAY AREA INST FOR INNOVATION HUNAN UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410778439.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional moxibustion treatment relies on human labor, and has problems such as high labor costs, poor privacy, complex operations, limited therapeutic effects, and insufficient safety, accuracy, and intelligence of existing moxibustion robots.

Method used

Design a binocular recognition moxibustion robot based on artificial intelligence. It uses a multi-joint robotic arm, a binocular camera and a control system. Through the calibration system, acupoint recognition system and travel system, it can achieve accurate identification of human acupuncture points and moxibustion path planning. , using YOLOv4 model and D*Lite algorithm for intelligent path planning and adjustment.

Benefits of technology

It improves the safety and accuracy of moxibustion, achieves personalized treatment, reduces labor costs, protects patient privacy, simplifies the operation process, and improves the continuity and effectiveness of treatment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118806587A_ABST
    Figure CN118806587A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of intelligent robots, and particularly relates to a binocular recognition moxibustion robot based on artificial intelligence, which comprises a robot base, a multi-joint mechanical arm, a binocular camera and a control system, the robot base is fixedly arranged, the binocular camera is connected with the robot base, the multi-joint mechanical arm is movably mounted on the robot base, and the control system is connected with the multi-joint mechanical arm. An actuator is arranged at the tail end of the multi-joint mechanical arm, the control system comprises a calibration system, an acupoint recognition system and a proceeding system, the binocular camera is composed of a left camera and a right camera which are horizontally arranged in parallel, the actuator is used for clamping moxa sticks made of folium artemisiae argyi, and the calibration system is used for conducting camera calibration on the imaging system of the robot base. The acupoint recognition system is used for conducting acupoint recognition on the back of the human body. The advancing system is used for controlling the multi-joint mechanical arm to advance according to a path. The method has the advantages of being high in safety, high in accuracy, easy and convenient to operate, personalized in treatment, capable of protecting patient privacy and capable of reducing labor cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent robots, and in particular relates to a binocular recognition moxibustion robot based on artificial intelligence. Background Art

[0002] As a traditional Chinese medicine treatment method, moxibustion has a long history and is widely used. It uses moxa sticks made of wormwood to apply to specific acupuncture points on the human body, and uses the heat and medicinal effects generated by the burning of moxa sticks to achieve the purpose of warming the meridians, harmonizing qi and blood, and strengthening the body. However, traditional moxibustion treatment relies on the experience and skills of professional doctors and has the following limitations:

[0003] High labor costs: Moxibustion treatment usually requires experienced physicians to perform it personally. As medical resources become tight, labor costs continue to rise. Poor privacy: In traditional moxibustion treatment, patients need to expose their bodies in front of physicians, which infringes on patients' privacy to a certain extent. Complex operation: Moxibustion treatment requires physicians to accurately locate acupuncture points and control the distance, temperature and moxibustion time between the moxa stick and the skin, which requires high skills of physicians. Limited treatment effect: Due to differences in physicians' experience and skills, the effect of moxibustion treatment may fluctuate, making it difficult to achieve standardization.

[0004] In response to the above problems, some moxibustion robots have appeared on the market, which simulate the moxibustion process through preset programs or simple drag-and-drop teaching methods. However, these moxibustion robots have the following shortcomings:

[0005] Safety issues: Existing moxibustion robots are often unable to identify and take avoidance measures in time when encountering obstacles, posing a risk of scalding patients; Lack of accuracy: Existing moxibustion robots cannot accurately identify patients' acupoints and can only record the path and repeatedly replay it by the doctor dragging. Once the patient's body moves, moxibustion cannot be performed accurately, and moxibustion of the wrong acupoints may even have a negative impact on health; Low level of intelligence: Most existing moxibustion robots use a simple teaching method and lack the ability to learn and adapt, and cannot provide personalized treatment based on the patient's specific situation; Poor user experience: Because the operation of the moxibustion robot is not flexible and intelligent enough, patients may feel inconvenienced or uncomfortable during use.

[0006] To this end, we propose a binocular recognition moxibustion robot based on artificial intelligence. Summary of the invention

[0007] The purpose of the present invention is to provide a binocular recognition moxibustion robot based on artificial intelligence to solve the problems existing in the background technology.

[0008] In order to achieve the above technical objectives, the technical solution adopted by the present invention is as follows:

[0009] A binocular recognition moxibustion robot based on artificial intelligence, comprising a robot base, a multi-joint mechanical arm, a binocular camera and a control system, wherein the robot base is fixedly arranged, the binocular camera is connected and installed with the robot base, the multi-joint mechanical arm is movably installed with the robot base, an actuator is arranged at the end of the multi-joint mechanical arm, and the control system comprises a calibration system, an acupoint recognition system and a travel system;

[0010] The binocular camera consists of two left and right cameras that are horizontally and parallelly arranged;

[0011] The actuator is used to clamp the moxa stick made of moxa leaves;

[0012] The calibration system is used to perform camera calibration on the imaging system of the robot base;

[0013] The acupoint identification system is used to identify acupoints on the back of the human body;

[0014] The travel system is used to control the multi-joint robotic arm to travel along a path so that the actuator clamps the moxa stick for moxibustion.

[0015] The calibration system comprises the following steps:

[0016] Step S100: performing single camera calibration on the left and right cameras respectively;

[0017] Step S200: After the single-camera calibration of the left and right cameras is completed, dual-camera calibration is performed;

[0018] Step S300: Perform hand-eye calibration on the end of the multi-joint robotic arm.

[0019] The single camera calibration includes the following sub-steps:

[0020] Step S110: Introduce the world coordinate system, camera coordinate system, image coordinate system and pixel coordinate system, where:

[0021] The world coordinate system represents the three-dimensional coordinates of an object in the real world;

[0022] The camera coordinate system represents the coordinate system with the optical center of the camera as the origin, and its optical axis is the Z axis;

[0023] The image coordinate system represents the coordinate system of the image captured by the camera, and the origin is the intersection of the camera optical axis and the imaging plane (the center point of the image);

[0024] The pixel coordinate system represents the pixel position of a point on the image in the image storage matrix, with the origin of the coordinate system at the upper left corner;

[0025] Convert the position of the object in the world coordinate system to the position in the camera's image coordinate system;

[0026] Step S120: Correct the distortion of the camera lens, construct a radial distortion model and a tangential distortion model, and obtain a corrected real image through the radial distortion model and the tangential distortion model.

[0027] The dual-target positioning includes the following sub-steps:

[0028] Step S210: performing binocular positioning to obtain the position and posture relationship of the right camera relative to the left camera;

[0029] Step S220: performing epipolar correction, using the Bouguet epipolar correction method, to obtain a binocular stereo image of the binocular cameras arranged in parallel.

[0030] The hand-eye calibration includes the following sub-steps:

[0031] Step S310: Introduce the base coordinate system, the end coordinate system of the robot arm, the calibration board coordinate system, and the camera coordinate system, where:

[0032] The base coordinate system refers to the coordinate system established with the base of the robot as the origin;

[0033] The end coordinate system of the robot arm refers to the coordinate system established with the end of the robot arm as the origin;

[0034] The calibration board coordinate system refers to the coordinate system established with the calibration board as the origin;

[0035] The camera (cam) coordinate system represents the coordinate system with the optical center of the camera as the origin, and its optical axis is the Z axis;

[0036] Fix the calibration plate at the end of the robot arm on the robot base, and use a camera to take pictures of the calibration plate in different robot arm postures;

[0037] Step S320: Determine the value of the hand-eye calibration matrix by changing the robot arm end posture multiple times.

[0038] The acupoint identification system comprises the following steps:

[0039] Step S400: back image recognition and contour detection and extraction;

[0040] Step S410: using a binocular camera to identify acupoint locations;

[0041] Step S420: Record the acupoint information treated by the doctor;

[0042] Step S430: generating a moxibustion acupoint sequence according to the recorded acupoint information;

[0043] Step S440: The doctor reviews and confirms the moxibustion acupoint sequence.

[0044] The step S400 includes the following sub-steps:

[0045] Step S401: marking the acupuncture points on the back of the human body, and collecting images of the acupuncture points on the back of the human body through a binocular camera;

[0046] Step S402: binarization of the image to eliminate image noise, connect areas, and change the shape and size;

[0047] Step S403: introducing a contour detection algorithm based on edge detection and a Sobel operator, obtaining the gradient of the image in the horizontal direction and the gradient in the vertical direction, and then calculating the gradient amplitude of the image;

[0048] Step S404: Perform contour detection on the binarized image to extract all image contours.

[0049] The step S410 specifically includes introducing a YOLOv4 model based on the extracted contour by the binocular camera to identify the acupoint positions marked in the extracted image contour;

[0050] The acupoint information of step S420 includes, but is not limited to: moxibustion sequence information of the acupoints, moxibustion stay time information, and distance information between the moxa stick and the acupoints.

[0051] Step S500: Based on the moxibustion acupoint sequence generated by the recorded acupoint information, the travel system uses the D*Lite algorithm to perform path planning and control the actuator at the end of the multi-joint robotic arm to perform the moxibustion acupoint operation.

[0052] The moxibustion robot of the present invention has the following significant beneficial effects:

[0053] Improved safety: The robot can monitor the surrounding environment in real time through visual recognition technology, and can automatically stop or avoid obstacles when encountering obstacles, effectively avoiding safety problems caused by the high temperature of the moxibustion head; Enhanced treatment accuracy: The robot can identify the location of acupuncture points on the back of the human body and make real-time adjustments according to the position changes, and generate moxibustion sequences according to the doctor's teaching to ensure the accuracy and effectiveness of moxibustion; Personalized treatment: The robot can adjust the moxibustion process according to the patient's specific situation and the doctor's guidance to achieve personalized treatment; Easy operation: The doctor only needs to perform moxibustion on the patient once, and the robot can learn and generate moxibustion sequences, simplifying the teaching process; Intelligent path planning: Using the D*Lite algorithm, the robot can plan and adjust the path according to real-time information to ensure the continuity and effectiveness of the moxibustion process; Reduced labor costs: Through automated and intelligent design, the use threshold is lowered, the dependence on professionals is reduced, and the labor cost is reduced; Protect patient privacy: The robot performs moxibustion operations, which improves the privacy of treatment and makes patients feel more at ease when receiving treatment. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The present invention is further illustrated by means of the non-limiting examples given in the accompanying drawings.

[0055] Figure 1 It is a structural schematic diagram of the present invention;

[0056] Figure 2 It is a schematic diagram of the use process of the present invention;

[0057] Figure 3 It is a schematic diagram of the YOLOv4 model structure of the present invention;

[0058] Figure 4 A schematic diagram of the interface for visualizing the moxibustion acupoint sequence and acupoint information;

[0059] Figure 5 A schematic diagram of the identified acupuncture points and their sequence; DETAILED DESCRIPTION

[0060] In order to enable those skilled in the art to better understand the present invention, the technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0061] like Figures 1 to 3 The binocular recognition moxibustion robot based on artificial intelligence shown in the figure includes a robot base, a multi-joint mechanical arm, a binocular camera and a control system. The robot base is fixedly arranged, the binocular camera is connected and installed with the robot base, the multi-joint mechanical arm is movably installed with the robot base, an actuator is arranged at the end of the multi-joint mechanical arm, and the control system includes a calibration system, an acupoint recognition system and a control system;

[0062] The binocular camera consists of two horizontally and parallelly arranged cameras on the left and right;

[0063] The actuator is used to clamp the moxa stick made of moxa leaves;

[0064] The calibration system is used to calibrate the camera of the imaging system of the robot base;

[0065] The acupoint recognition system is used to identify acupoints on the back of the human body;

[0066] The travel system is used to control the multi-joint robotic arm to travel along a path, so that the actuator clamps the moxa stick for moxibustion.

[0067] Specifically, before the moxibustion robot is used, it is calibrated by the calibration system, as follows:

[0068] Calibration of the system consists of the following steps:

[0069] Step S100: perform single camera calibration on the left and right cameras respectively, specifically:

[0070] Step S110: Introduce the world coordinate system, camera coordinate system, image coordinate system and pixel coordinate system, where:

[0071] The world coordinate system represents the three-dimensional coordinates of an object in the real world. Coordinates are expressed in (x w ,y w ,z w ) is expressed in millimeters;

[0072] The camera coordinate system represents the coordinate system with the optical center of the camera as the origin, its optical axis is the Z axis, and the coordinates are expressed in (x C ,y C ,z C ) is expressed in millimeters;

[0073] The image coordinate system represents the coordinate system of the image captured by the camera. The origin is the intersection of the camera optical axis and the imaging plane (the center point of the image). The coordinates are represented by (x, y) in millimeters.

[0074] The pixel coordinate system represents the pixel position of a point on the image in the image storage matrix. The origin of the coordinate system is in the upper left corner. The coordinates are represented by (u, v) and the unit is pixel.

[0075] Convert the position of the object in the world coordinate system to the position in the camera's image coordinate system;

[0076] In this step, the pixel coordinates of the center of the image are recorded as (u0, v0), the physical size of each pixel of the photosensitive device in the camera is dx×dy, and the relationship between the coordinates (x, y) of the image coordinate system and the coordinates (u, v) of the pixel coordinate system can be expressed as:

[0077]

[0078] Rewritten in homogeneous coordinate form:

[0079]

[0080] The point coordinates of the object in the camera coordinate system are (X c , Y c , Z c ), the coordinates of the image in the image coordinate system are (x, y), and the center position of the light in the camera optical system is the origin O c (i.e. the center of the lens), the distance O between the origin of the camera coordinate system and the origin of the image coordinate system c O i The distance between them is f (i.e. focal length), then we can know that the relationship between the camera coordinate system and the image coordinate system is:

[0081]

[0082] After transformation, we get:

[0083]

[0084] In single-camera vision, it is mainly manifested in the mapping relationship between the real object size and the image size, and the transformation relationship from the pixel coordinate system to the world coordinate system:

[0085]

[0086] in, is the external parameter of the camera, that is, the rotation and translation transformation relationship of the camera relative to the world coordinate system; is the intrinsic parameter of the camera, which is the inherent property of the camera; Z c Indicates the distance of an object from the optical center;

[0087] Step S120: Correcting the distortion of the camera lens, constructing a radial distortion model and a tangential distortion model, and obtaining a corrected real image through the radial distortion model and the tangential distortion model;

[0088] Radial distortion: For a lens, the center of the lens is taken as the origin, and outward is the direction of the radius of the lens. The closer the light is to the center, the smaller the distortion is, and the farther away from the center along the radius, the larger the distortion is.

[0089] The radial distortion model is as follows:

[0090]

[0091] Among them, (x, y) is the ideal undistorted coordinate (image coordinate system), (x dr ,ydr ) is the coordinate of the pixel point in the distorted image, and r 2 =x 2 +y 2 ;

[0092] Tangential distortion: When the lens is not aligned with the imaging plane, distortion occurs, similar to perspective transformation.

[0093] The tangential distortion model is as follows:

[0094]

[0095] By constructing radial distortion model and tangential distortion model to correct the image distortion, the corrected real image is as follows:

[0096]

[0097] After the above step S100 is completed, the next step S200 is entered: after the single camera calibration of the left and right cameras is completed, the dual-target calibration is performed, specifically:

[0098] Step S210: performing binocular positioning to obtain the position and posture relationship of the right camera relative to the left camera;

[0099] In this step, the binocular camera consists of two horizontally and parallel cameras. The aperture centers of the two cameras are located on the X-axis. The distance between them is called the baseline of the binocular camera, denoted by b.

[0100] For the left and right cameras, there are the following formulas (rotation + translation):

[0101]

[0102] By transforming it into P w form:

[0103]

[0104] Transformation yields:

[0105] P r =[R r (R l ) -1 ]P l +[T r -R r (R l ) -1 T l ];

[0106] In addition, the principal point of the right camera also satisfies the following equation relative to the principal point of the left camera:

[0107] P r =R·P l +T

[0108] Formula P r =[R r (R l ) -1 ]P l +[T r -R r (R l ) -1 T1] and formula P r =R·P l +T is equal, because the rotation matrix is ​​a (unit) orthogonal matrix, and the inverse of a matrix is ​​equal to the transpose of the matrix, R -1 =R T , finally, we can get:

[0109]

[0110] Among them, P w is the coordinate of a point on the calibration plate in the world coordinate system; R and T represent the rotation matrix and translation matrix of the right camera relative to the left camera respectively; P l , P r is the coordinate of the left and right cameras in the world coordinate system; R l 、T l Represents the rotation matrix and translation matrix of the point relative to the left camera principal point, R r 、T r Respectively represent the rotation matrix and translation matrix of the point relative to the right camera principal point;

[0111] After step S210 is completed, the position relationship of the right camera relative to the left camera, that is, the R and T matrices, is obtained, and the next step S220 is entered: epipolar correction is performed, and the Bouguet epipolar correction method is used to obtain a binocular stereo image of the parallelly arranged binocular cameras;

[0112] In this step, the Bouguet epipolar correction method is used to rotate the imaging planes of the left and right cameras by half, so that the error caused by the reprojection of the left and right images is minimized and the common area of ​​the left and right views is maximized, as follows:

[0113] A. Coplanarity: Divide the rotation matrix R of the right camera relative to the left camera into the composite matrix r of the left and right cameras l 、r r , the purpose is to achieve parallelism of the image plane:

[0114]

[0115] B. Row alignment: Establish row alignment matrix R rect, transform the poles to infinity, specifically:

[0116] Create a transformation matrix R in the same direction as the translation vector T rec :

[0117]

[0118] Let T = [T x , T y , T z ] T , are the translation vectors in the x, y, and z directions respectively, and we have:

[0119] ①: e1=T / ||T||, which is the pole in the same direction as the translation vector T;

[0120] ②: is the vector in the direction of the image plane;

[0121] ③: e3 = e1 × e2, which is a vector perpendicular to the plane where e1 and e2 are located;

[0122] C. Joint R rect 、r l 、r r Get the final transformation matrix R of the left and right cameras l , R r :

[0123] R l =R rect r l

[0124] R r =R rect r r

[0125] D. Calculate the reprojection matrix to achieve the conversion between the pixel coordinate system (left camera) and the world coordinate system:

[0126]

[0127]

[0128] Among them, u0 and u′0 are the horizontal coordinates of the optical center (origin) of the left and right cameras in their respective pixel coordinate systems, d is the parallax of the same-name pixel points, and W is the scale factor;

[0129] The three-dimensional coordinates of the actual point are: Through the above overall rotation matrix, a binocular stereo image of the binocular cameras arranged in parallel is obtained.

[0130] After the above step S200 is completed, the next step S300 is entered: hand-eye calibration is performed on the end of the multi-joint robot arm, specifically:

[0131] Step S310: Introduce the base coordinate system, the end coordinate system of the robot arm, the calibration board coordinate system, and the camera coordinate system, where:

[0132] The base coordinate system refers to the coordinate system established with the base of the robot as the origin;

[0133] The end coordinate system of the robot arm refers to the coordinate system established with the end of the robot arm as the origin;

[0134] The calibration board coordinate system refers to the coordinate system established with the calibration board as the origin;

[0135] The camera (cam) coordinate system represents the coordinate system with the optical center of the camera as the origin, and its optical axis is the Z axis;

[0136] Fix the calibration plate at the end of the robot arm of the robot base, and use the camera to take pictures of the calibration plate in different robot arm postures to get:

[0137]

[0138] in, It can be solved directly from the photographed calibration plate image; It can be obtained from the end-of-arm posture parameters; is an unknown quantity. Since the calibration plate is fixed at the end of the robotic arm, the transformation matrix is ​​the same for each set of images.

[0139] Deformed:

[0140]

[0141] Then we can get the following equation:

[0142]

[0143] Transformation yields:

[0144]

[0145] It can be expressed as:

[0146] AX = XB;

[0147]

[0148] Step S320: By changing the end position of the robot arm multiple times, the hand-eye calibration equation AX=XB is solved to obtain the value of the matrix X, and the value of the hand-eye calibration matrix is ​​determined.

[0149] After the calibration system is calibrated, the acupoint recognition system will recognize acupoints on the back of the human body, including the following steps:

[0150] Step S400: back image recognition and contour detection and extraction, specifically as follows:

[0151] Step S401: marking the acupuncture points on the back of the human body, and collecting images of the acupuncture points on the back of the human body through a binocular camera;

[0152] Step S402: binarization of the image to eliminate image noise, connect areas, and change the shape and size;

[0153] Step S403: introducing a contour detection algorithm based on edge detection and a Sobel operator, obtaining the gradient of the image in the horizontal direction and the gradient in the vertical direction, and then calculating the gradient amplitude of the image;

[0154] Step S404: performing contour detection on the binarized image to extract all image contours;

[0155] Step S410 specifically includes introducing a YOLOv4 model based on the extracted contour by the binocular camera to identify the acupoint positions marked in the extracted image contour;

[0156] Step S420: Recording the acupoint information treated by the doctor, including but not limited to: the moxibustion sequence information of the acupoints, the moxibustion stay time information, and the distance information between the moxa stick and the acupoints;

[0157] Step S430: generating a moxibustion acupoint sequence according to the recorded acupoint information;

[0158] Step S440: The doctor reviews and confirms the moxibustion acupoint sequence.

[0159] Step S500: Based on the moxibustion acupoint sequence generated by the recorded acupoint information, the travel system uses the D*Lite algorithm to perform path planning and control the actuator at the end of the multi-joint robotic arm to perform the moxibustion acupoint operation.

[0160] Embodiment 1:

[0161] In the process of single camera calibration, Zhang's calibration method is used to calibrate the camera. The plane chessboard is used as the calibration plate. The internal and external parameters of the camera are calculated by taking pictures of the chessboard from different angles. The specific steps are as follows:

[0162] 1. Preparation: Get a flat chessboard as the calibration board. Make sure the squares on the calibration board are clearly visible, and the size of the calibration board and the number of squares are known;

[0163] 2. Image acquisition: Use a camera to capture images of the calibration plate at different positions and angles, ensuring that the entire calibration plate can be clearly seen from each angle and that the entire field of view of the camera is covered as much as possible;

[0164] 3. Corner point detection: Perform corner point detection on each calibration plate image, that is, find the corner point positions of the checkerboard on the calibration plate and record the pixel coordinates of these corner points;

[0165] 4. Calculate the homography matrix: Using the known actual size of the calibration plate and the pixel coordinates of the checkerboard corners, use Zhang's calibration method to calculate the homography matrix from the world coordinate system to the camera pixel coordinate system;

[0166] 5. Solving the intrinsic parameter matrix: Solve the intrinsic parameter matrix of the camera by decomposing the homography matrix, including parameters such as focal length, principal point coordinates and pixel size;

[0167] 6. Distortion parameter estimation: Using radial distortion model and tangential distortion model, the image is dedistorted according to the distortion parameters to improve image quality;

[0168] 7. Parameter optimization: Use optimization algorithms such as the Levenberg-Marquardt algorithm to optimize all internal parameters and distortion parameters to improve the accuracy and stability of calibration.

[0169] Embodiment 2:

[0170] In the process of binocular calibration, the chessboard in Zhang's calibration method is also used for binocular calibration. The specific steps are as follows:

[0171] 1. Preparation: Use a flat chessboard as a calibration plate, make sure the squares on the chessboard are clearly visible, install the binocular camera on the moxibustion robot, and ensure that their optical axes are parallel to each other and form a certain angle;

[0172] 2. Image acquisition: Use two cameras to simultaneously capture images of the checkerboard at different positions and angles, making sure that each camera can see the calibration plate;

[0173] 3. Corner point detection: Perform corner point detection on each chessboard image to obtain the pixel coordinates of the chessboard corner points;

[0174] 4. Homography matrix estimation: Using the pixel coordinates of the chessboard corners and the known physical coordinates of the chessboard, the homography matrix from the world coordinate system to the pixel coordinate system is calculated for the left and right cameras respectively;

[0175] 5. Solving the intrinsic parameter matrix: Through the properties of the homography matrix and the rotation matrix, the intrinsic parameter matrices of the left and right cameras are solved respectively, including parameters such as focal length, principal point coordinates, and pixel size;

[0176] 6. Solving the extrinsic matrix: For each chessboard image, solve the extrinsic matrix of the left and right cameras respectively, that is, the rotation and translation matrix, which reflects the position and posture of the chessboard relative to the left and right cameras;

[0177] 7. Distortion parameter estimation: Using radial distortion model and tangential distortion model, according to the distortion parameters, the distortion parameters of the images of the left and right cameras are estimated respectively, and then the images are dedistorted to improve the image quality;

[0178] 8. Parameter optimization: Use the Levenberg-Marquardt algorithm to optimize all internal and external parameters to improve the accuracy of calibration.

[0179] Embodiment 3:

[0180] In the process of hand-eye calibration, the chessboard in Zhang's calibration method is also used for binocular calibration. The specific steps are as follows:

[0181] 1. Preparation: Make sure there is enough space within the range of motion of the multi-joint robot to place the calibration plate, and that the calibration plate can be photographed by the camera in different postures, and that the field of view of the binocular camera can cover the entire calibration plate;

[0182] 2. Image acquisition: Use a multi-joint robotic arm to control the camera to capture images of the calibration plate at different positions and angles to ensure that each camera can capture a clear image of the calibration plate;

[0183] 3. Corner point detection: Perform corner point detection on each calibration plate image to obtain the pixel coordinates of the corner points of the calibration plate;

[0184] 4. Homography matrix estimation: Using the pixel coordinates of the corner points of the calibration plate and the known physical coordinates of the calibration plate, the homography matrix from the camera coordinate system to the calibration plate coordinate system is calculated for each of the two cameras;

[0185] 5. Solving the intrinsic parameter matrix: Solve the camera's intrinsic parameter matrix, including parameters such as focal length, principal point coordinates, and pixel size, through the homography matrix and the known camera extrinsics (the position and posture of the camera relative to the multi-joint robotic arm);

[0186] 6. Solving the extrinsic parameter matrix: For each camera, the extrinsic parameter matrix of the camera in the multi-joint robotic arm coordinate system is solved through the motion trajectory of the multi-joint robotic arm and the extrinsic parameters of the camera, that is, the position and posture of the camera relative to the multi-joint robotic arm;

[0187] 7. Hand-eye calibration: Install a calibration chessboard on the end effector of the multi-joint robotic arm, obtain the pose information of the end effector through the forward kinematics model of the multi-joint robotic arm, use the camera to capture the image of the calibration device, obtain the pose information of the device in the camera coordinate system through image processing methods, pair the pose information of the end effector of the multi-joint robotic arm with the pose information of the calibration device captured by the camera, and use the hand-eye calibration algorithm to solve the hand-eye transformation matrix;

[0188] 8. Parameter optimization: Optimize all parameters, including camera intrinsic parameters, extrinsic parameters and hand-eye transformation matrix, to improve the accuracy of calibration.

[0189] Example 4: The specific steps for use are as follows:

[0190] Step S1: After the calibration is completed, the back image calibration and contour detection includes the following steps:

[0191] 1. Marking the acupoints: Before the experiment, you first need to use special colors to mark the backs of the volunteers. Use red stickers to mark the acupoints on the backs of the volunteers to ensure that the marked information can be clearly displayed in the image.

[0192] 2. Take back images: We use a binocular camera to take images of the volunteers' backs, while ensuring that the pre-marked acupuncture points can be clearly seen during the shooting;

[0193] 3. Image processing: Since the artificial red mark has a significant color difference on the back and can be clearly distinguished from the background, the image information can be directly used to detect the position of the red mark. Specifically:

[0194] ① Color space conversion: convert RGB color space to HSV color space;

[0195] ② Color threshold segmentation: In the present invention, in order to ensure the segmentation of the red area, we not only ensure the red H channel, but also retain higher S and V values ​​to capture the color of the red mark;

[0196] ③Morphological operation: Perform morphological operation on the binarized image to eliminate noise and connect the red areas;

[0197] ④Contour detection: Use contour detection algorithm to find the contours of all red marks in the image;

[0198] ⑤ Draw marks: For the detected red marks, mark their positions on the original image.

[0199] Step S2: After the back image calibration and contour detection are completed, the binocular camera is used to identify the acupoint position, including the following steps:

[0200] 1. Image preprocessing: preprocess the captured images, such as color space conversion, denoising, etc.;

[0201] 2. Feature extraction: In addition to the image itself, the shape and position information of the area detected by the contour detection algorithm is also used as one of the features of target detection for feature extraction. The feature extraction steps are as follows:

[0202] ① Contour feature extraction: Convert contour information into feature vectors, and use descriptors such as shape context to represent contour features, specifically:

[0203] A. Obtaining contour information: The contour can be represented as a set of two-dimensional coordinate points (x i ,y i ), where i is the index of a point on the contour;

[0204] B. Normalized contours: Normalize the contours by calculating their centroids and translating them to the center of the image so that they have the same starting point and scale. Specifically, first calculate the average value of all contours to obtain the centroid (C x , C y ), and then each point on the contour (x i ,y i ) translates in the opposite direction of the centroid so that the centroid moves to the center of the image Where W and H are the width and height of the image respectively, and the coordinates after translation are:

[0205]

[0206] C. Applying shape context descriptor: The shape context descriptor is used to represent the shape information of the contour. The specific steps are as follows:

[0207] Point set matching: The normalized contour is represented as a set of points, where each point (x i ,y i ) represents a sampling point on the contour.

[0208] Construct descriptor: For each contour point (x i ,y i ), calculate its difference with other points (x j ,y j )'s relative polar coordinates (r ij ,θ ij ), where r ij is the point (x i ,y i ) to point (x j ,y j ), θ ij Represents the angle between two points, and a distance-angle histogram is calculated.

[0209] Descriptor representation: connect the values ​​of all bins of the histogram in sequence into a vector as the feature vector of the contour.

[0210] ② Image feature extraction: extract feature vectors from images;

[0211] ③ Feature vector merging: Merge the contour feature vector and the image feature vector into a new feature vector;

[0212] 3. Target detection: Using the results of feature extraction, use the YOLOv4 target detection algorithm to locate and identify the acupoints in the image;

[0213] 4. Result verification: Verify the results of target detection to ensure the accuracy and stability of the results. Use the results of contour detection as auxiliary reference indicators to assist in verifying the results of target detection.

[0214] 5. Mapping of detection results: Map the bounding box obtained by target detection to the depth map. The depth map contains the depth information of each pixel in three-dimensional space. Mapping the results of contour detection and target detection to these maps can obtain the accurate location information of the acupoints, and at the same time help the robot determine important information such as the distance between the acupoints and the skin. Specifically, for each pixel in the bounding box, the corresponding depth value is obtained from the depth map according to its position in the original image; for the depth value that does not exist in the depth map, interpolation processing is performed to estimate the depth value of the pixel in the bounding box;

[0215] Step S3: After the binocular camera recognizes the acupoint position, recording the acupoint information treated by the doctor mainly includes the following steps:

[0216] 1. Record the acupoints for moxibustion:

[0217] ① Acupoint recognition: The recognition method is the same as step S2. During the doctor's teaching process, the same algorithm is used to monitor the back area in real time and recognize the acupoints that the doctor is treating;

[0218] ②Coordinate recording: After identifying the acupoints for moxibustion treatment, record the location coordinates of each acupoint;

[0219] ③Marking and recording: Mark the location of each acupuncture point in the image so that the doctor can review it after the teaching is completed;

[0220] 2. Duration record: record the start time and end time of each acupoint moxibustion treatment, and calculate the time difference between these two time points to obtain the duration of the acupoint moxibustion treatment;

[0221] 3. Distance record: record the distances between all acupuncture points involved in moxibustion, specifically:

[0222] ① Acquisition of acupoint coordinates: Acquisition of the coordinates of the acupoints for moxibustion identified in the previous steps.

[0223] ② Distance calculation: The Euclidean distance formula is used to calculate the distance between two points, which can be expressed as:

[0224]

[0225] Among them, (x1, y1, z1) and (x2, y2, z2) are the position coordinates of two acupuncture points respectively;

[0226] ③ Distance recording: record the calculated distance between each pair of acupoints.

[0227] Step S4: After recording the acupoint information of the doctor's moxibustion treatment, a moxibustion acupoint sequence is generated according to the recorded acupoint information, including the moxibustion sequence information of the acupoints, the moxibustion stay time information, and the distance information between the moxa stick and the acupoints;

[0228] Step S5: After obtaining the moxibustion point sequence, the doctor reviews and confirms it, as follows:

[0229] 1. Visual display: Use the corresponding software to display the generated moxibustion point sequence in the form of a list to the doctor through the user interface. This list includes the location of each acupoint and the moxibustion sequence and other corresponding moxibustion treatment information. Figure 4 As shown, doctors can modify and adjust the process in the software;

[0230] At the same time, if Figure 5 As shown, the acupoint images marked in acupoint identification can be marked and connected in combination with information such as the distance between acupoints. The auxiliary images generated in this way can help doctors confirm the route of robot moxibustion, enable doctors to understand the order and position of moxibustion more intuitively, and improve the accuracy and effect of treatment;

[0231] 2. Authorize moxibustion: After confirmation, the doctor authorizes the robot to start moxibustion;

[0232] 3. Save moxibustion treatment records: save each moxibustion acupoint sequence for future reuse and reference by the doctor.

[0233] Step S6: After the acupoint information and the acupoint sequence are confirmed to be correct, path planning is performed on the multi-joint robotic arm, specifically:

[0234] 1. Environment modeling: Divide the three-dimensional space into grids, where each grid point represents a node. The connection between nodes is represented by "edges", and the weight w of the "edge" is based on the distance between nodes;

[0235] 2. Target point sequence: Based on the acupoint information and moxibustion point sequence in the previous step, these acupoints are used as special nodes in the image;

[0236] 3. Dynamic obstacle detection: detect obstacles in the environment in real time, and add obstacle nodes to the corresponding positions in the image to increase their costs;

[0237] 4. Cost update: When the target point or obstacle position changes, update the cost of the relevant nodes;

[0238] 5. Heuristic function: Since the present invention involves image recognition and robot control in three-dimensional space, the Euclidean distance is used as the heuristic function; its formula is as follows:

[0239]

[0240] Among them, (x n ,y n ,z n ) is the coordinate of node n, (x g ,y g ,z g ) are the coordinates of the target point;

[0241] 6. Path search: Starting from the starting point, execute the D*Lite algorithm, calculate the cost to each target point, and generate a path;

[0242] 7. Multi-joint robot trajectory generation: According to the kinematic and dynamic characteristics of the multi-joint robot, the path is adjusted and optimized. At the same time, inverse kinematics is used to calculate the joint angles corresponding to the actuator posture at the end of the multi-joint robot, and a smooth trajectory in the joint space is generated;

[0243] 8. Real-time adjustment: During the execution of the path, the robot's control system monitors environmental changes in real time, such as the appearance of obstacles or human movement that cause changes in acupoint coordinates, and adjusts the motion trajectory according to the output of the D*Lite algorithm. In this way, the multi-joint robotic arm can be controlled to drive according to the acupoint information, moxibustion sequence and planned path, so that the end actuator clamps the moxa stick to perform moxibustion treatment on the acupoint.

[0244] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed by the present invention should still be covered by the claims of the present invention.

Claims

1. A binocular recognition moxibustion robot based on artificial intelligence, characterized by: It includes a robot base, a multi-joint mechanical arm, a binocular camera and a control system. The robot base is fixedly arranged, the binocular camera is connected and installed with the robot base, the multi-joint mechanical arm is movably installed with the robot base, an actuator is arranged at the end of the multi-joint mechanical arm, and the control system includes a calibration system, an acupoint recognition system and a processing system; The binocular camera consists of two left and right cameras that are horizontally and parallelly arranged; The actuator is used to clamp the moxa stick made of moxa leaves; The calibration system is used to perform camera calibration on the imaging system of the robot base; The acupoint identification system is used to identify acupoints on the back of the human body; The travel system is used to control the multi-joint robotic arm to travel along a path so that the actuator clamps the moxa stick for moxibustion.

2. The binocular recognition moxibustion robot based on artificial intelligence according to claim 1, characterized in that: The calibration system comprises the following steps: Step S100: performing single camera calibration on the left and right cameras respectively; Step S200: After the single-camera calibration of the left and right cameras is completed, dual-camera calibration is performed; Step S300: Perform hand-eye calibration on the end of the multi-joint robotic arm.

3. The binocular recognition moxibustion robot based on artificial intelligence according to claim 2, characterized in that: The single camera calibration includes the following sub-steps: Step S110: Introduce the world coordinate system, camera coordinate system, image coordinate system and pixel coordinate system, where: The world coordinate system represents the three-dimensional coordinates of an object in the real world; The camera coordinate system represents the coordinate system with the optical center of the camera as the origin, and its optical axis is the Z axis; The image coordinate system represents the coordinate system of the image captured by the camera, and the origin is the intersection of the camera optical axis and the imaging plane (the center point of the image); The pixel coordinate system represents the pixel position of a point on the image in the image storage matrix, with the origin of the coordinate system at the upper left corner; Convert the position of the object in the world coordinate system to the position in the camera's image coordinate system; Step S120: Correct the distortion of the camera lens, construct a radial distortion model and a tangential distortion model, and obtain a corrected real image through the radial distortion model and the tangential distortion model.

4. The binocular recognition moxibustion robot based on artificial intelligence according to claim 3, characterized in that: The dual-target positioning includes the following sub-steps: Step S210: performing binocular positioning to obtain the position and posture relationship of the right camera relative to the left camera; Step S220: performing epipolar correction, using the Bouguet epipolar correction method, to obtain a binocular stereoscopic image of the binocular cameras arranged in parallel.

5. The binocular recognition moxibustion robot based on artificial intelligence according to claim 4, characterized in that: The hand-eye calibration includes the following sub-steps: Step S310: Introduce the base coordinate system, the end coordinate system of the robot arm, the calibration board coordinate system, and the camera coordinate system, where: The base coordinate system refers to the coordinate system established with the base of the robot as the origin; The end coordinate system of the robot arm refers to the coordinate system established with the end of the robot arm as the origin; The calibration board coordinate system refers to the coordinate system established with the calibration board as the origin; The camera (cam) coordinate system represents the coordinate system with the optical center of the camera as the origin, and its optical axis is the Z axis; Fix the calibration plate at the end of the robot arm on the robot base, and use a camera to take pictures of the calibration plate in different robot arm postures; Step S320: Determine the value of the hand-eye calibration matrix by changing the robot arm end posture multiple times.

6. The binocular recognition moxibustion robot based on artificial intelligence according to claim 5, characterized in that: The acupoint identification system comprises the following steps: Step S400: back image recognition and contour detection and extraction; Step S410: using a binocular camera to identify acupoint locations; Step S420: Record the acupoint information treated by the doctor; Step S430: generating a moxibustion acupoint sequence according to the recorded acupoint information; Step S440: The doctor reviews and confirms the moxibustion acupoint sequence.

7. The binocular recognition moxibustion robot based on artificial intelligence according to claim 6, characterized in that: The step S400 includes the following sub-steps: Step S401: marking the acupuncture points on the back of the human body, and collecting images of the acupuncture points on the back of the human body through a binocular camera; Step S402: binarization of the image to eliminate image noise, connect areas, and change the shape and size; Step S403: introducing a contour detection algorithm based on edge detection and a Sobel operator, obtaining the gradient of the image in the horizontal direction and the gradient in the vertical direction, and then calculating the gradient amplitude of the image; Step S404: Perform contour detection on the binarized image to extract all image contours.

8. The binocular recognition moxibustion robot based on artificial intelligence according to claim 7, characterized in that: The step S410 specifically includes introducing a YOLOv4 model based on the extracted contour by the binocular camera to identify the acupoint position marked in the extracted image contour; The acupoint information of step S420 includes, but is not limited to: moxibustion sequence information of the acupoints, moxibustion stay time information, and distance information between the moxa stick and the acupoints.

9. The binocular recognition moxibustion robot based on artificial intelligence according to claim 8, characterized in that: The following steps are also included: Step S500: Based on the moxibustion acupoint sequence generated by the recorded acupoint information, the travel system uses the D*Lite algorithm to perform path planning and control the actuator at the end of the multi-joint robotic arm to perform the moxibustion acupoint operation.

Citation Information

Cited By

  • Pose recognition method of transparent culture dish and related equipment

    CN120747206A